-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMainWindow.xaml
57 lines (56 loc) · 3.15 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<base:ThemedPlatformWindow
x:Class="RevitCopyStandarts.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:base="clr-namespace:dosymep.WPF.Views"
xmlns:dx="http://schemas.devexpress.com/winfx/2008/xaml/core"
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:vms="clr-namespace:RevitCopyStandarts.ViewModels"
WindowStartupLocation="CenterScreen"
Width="700"
Height="400" Title="Копирование стандартов">
<Grid>
<dx:DXTabControl ItemsSource="{Binding BimCategories}" HorizontalAlignment="Stretch"
VerticalAlignment="Stretch" Name="_mainTabControl" Grid.ColumnSpan="4">
<dx:DXTabControl.ItemHeaderTemplate>
<DataTemplate>
<TextBlock Text="{Binding Name}" />
</DataTemplate>
</dx:DXTabControl.ItemHeaderTemplate>
<dx:DXTabControl.ItemTemplate>
<DataTemplate>
<dxg:GridControl SelectionMode="Row"
ItemsSource="{Binding BimFiles}">
<dxg:GridControl.View>
<dxg:TableView AutoWidth="True"
AllowEditing="False" />
</dxg:GridControl.View>
<dxg:GridColumn Width="Auto">
<dxg:GridColumn.CellTemplate>
<DataTemplate>
<dx:SimpleButton Command="{Binding Row.CopyObjectsCommand}">Копировать</dx:SimpleButton>
</DataTemplate>
</dxg:GridColumn.CellTemplate>
</dxg:GridColumn>
<dxg:GridColumn Header="Наименование" FieldName="Name" AllowEditing="False" ReadOnly="True"
Width="Auto" />
<dxg:GridColumn Header="Дата создания" FieldName="CreationTime" AllowEditing="False"
ReadOnly="True">
<dxg:GridColumn.EditSettings>
<dxe:DateEditSettings DisplayFormat="HH:mm:ss dd.MM.yy" />
</dxg:GridColumn.EditSettings>
</dxg:GridColumn>
<dxg:GridColumn Header="Дата редактирования" FieldName="ModifiedTime" AllowEditing="False"
ReadOnly="True">
<dxg:GridColumn.EditSettings>
<dxe:DateEditSettings DisplayFormat="HH:mm:ss dd.MM.yy" />
</dxg:GridColumn.EditSettings>
</dxg:GridColumn>
</dxg:GridControl>
</DataTemplate>
</dx:DXTabControl.ItemTemplate>
</dx:DXTabControl>
</Grid>
</base:ThemedPlatformWindow>