61 lines
2.4 KiB
XML
61 lines
2.4 KiB
XML
<UserControl
|
|
x:Class="SWS.CAD.Views.DialogPropertyHistory"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
|
xmlns:local="clr-namespace:SWS.CAD.Views.CustomControl"
|
|
xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
|
|
xmlns:converter="clr-namespace:SWS.CAD.Converter"
|
|
Background="White"
|
|
Width="600"
|
|
Height="300">
|
|
<UserControl.Resources>
|
|
<ResourceDictionary Source="pack://application:,,,/SWS.CAD;component/Views/Style/CustomStyles.xaml" />
|
|
|
|
</UserControl.Resources>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="auto" />
|
|
<RowDefinition />
|
|
<RowDefinition Height="auto" />
|
|
</Grid.RowDefinitions>
|
|
<local:customWindowTitleBar />
|
|
<telerik:RadGridView
|
|
Grid.Row="1"
|
|
telerik:StyleManager.Theme="Windows7"
|
|
AutoGenerateColumns="False"
|
|
IsReadOnly="True"
|
|
ItemsSource="{Binding listData}"
|
|
SelectedItem="{Binding selectData,Mode=TwoWay}"
|
|
SelectionMode="Single"
|
|
ShowGroupPanel="False">
|
|
|
|
<telerik:RadGridView.Columns>
|
|
<local:RowNumberColumn Width="32" Header="序号"/>
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding PropertyName}" Header="属性名称" />
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding PropertyValue}" Header="属性值" />
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding CreateUserName}" Header="操作人" />
|
|
<telerik:GridViewDataColumn DataMemberBinding="{Binding CreateTime,StringFormat='yyyy-MM-dd HH:mm:ss'}" Header="日期" />
|
|
</telerik:RadGridView.Columns>
|
|
</telerik:RadGridView>
|
|
|
|
|
|
<Border
|
|
Grid.Row="2"
|
|
Height="30"
|
|
Background="{StaticResource ColorPrimary}">
|
|
<StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
|
|
|
|
<telerik:RadButton
|
|
Margin="5"
|
|
Command="{Binding CloseCommand}"
|
|
CommandParameter="{Binding RelativeSource={RelativeSource AncestorType=Window}}"
|
|
Content="关闭"
|
|
Style="{StaticResource sysBtn2}" />
|
|
|
|
</StackPanel>
|
|
</Border>
|
|
</Grid>
|
|
|
|
</UserControl>
|