57 lines
2.0 KiB
XML
57 lines
2.0 KiB
XML
<UserControl
|
|
x:Class="CapMachine.Wpf.Views.DialogCanRwConfigView"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:CapMachine.Wpf.Views"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:prism="http://prismlibrary.com/"
|
|
Width="800"
|
|
Height="600"
|
|
mc:Ignorable="d">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition />
|
|
<RowDefinition Height="auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid Grid.Row="0">
|
|
<DataGrid
|
|
Margin="5"
|
|
AutoGenerateColumns="False"
|
|
CanUserAddRows="False"
|
|
HeadersVisibility="Column"
|
|
ItemsSource="{Binding ListChartTabGroupDto}"
|
|
SelectionUnit="Cell">
|
|
<DataGrid.Columns>
|
|
<DataGridTextColumn
|
|
Binding="{Binding Index}"
|
|
Header="序号"
|
|
IsReadOnly="True" />
|
|
<DataGridTextColumn
|
|
Width="200"
|
|
Binding="{Binding Name}"
|
|
Header="名称" />
|
|
<DataGridCheckBoxColumn Binding="{Binding IsEnable}" Header="是否启用" />
|
|
</DataGrid.Columns>
|
|
</DataGrid>
|
|
</Grid>
|
|
|
|
<StackPanel
|
|
Grid.Row="1"
|
|
HorizontalAlignment="Right"
|
|
Orientation="Horizontal">
|
|
<Button
|
|
Margin="10,10"
|
|
Command="{Binding SaveCmd}"
|
|
Content="确定"
|
|
Foreground="White" />
|
|
<Button
|
|
Margin="10,0"
|
|
Command="{Binding CancelCmd}"
|
|
Content="取消"
|
|
Foreground="White" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</UserControl>
|