25 lines
1.3 KiB
Plaintext
25 lines
1.3 KiB
Plaintext
|
|
<Window x:Class="MvdLiteSnoop.Window1"
|
||
|
|
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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
|
|
xmlns:local="clr-namespace:MvdLiteSnoop" d:DataContext="{d:DesignInstance Type=local:Window1}"
|
||
|
|
mc:Ignorable="d"
|
||
|
|
Title="Window1" Height="450" Width="800">
|
||
|
|
<Grid>
|
||
|
|
<DataGrid ItemsSource="{Binding Items}"
|
||
|
|
>
|
||
|
|
|
||
|
|
<DataGrid.Columns>
|
||
|
|
<DataGridTextColumn Header="Name"
|
||
|
|
Binding="{Binding Name, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
||
|
|
<DataGridCheckBoxColumn Header="Is Active"
|
||
|
|
Binding="{Binding IsActive, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />
|
||
|
|
<!--<DataGridComboBoxColumn Header="Type"
|
||
|
|
ItemsSource="{Binding DataContext.TypeList, RelativeSource={RelativeSource AncestorType=Window}}"
|
||
|
|
SelectedItemBinding="{Binding Type, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" />-->
|
||
|
|
</DataGrid.Columns>
|
||
|
|
</DataGrid>
|
||
|
|
</Grid>
|
||
|
|
</Window>
|