翼度科技»论坛 编程开发 .net 查看内容

WPF入门教程系列二十八 ——DataGrid使用示例MVVM模式(5)

4

主题

4

帖子

12

积分

新手上路

Rank: 1

积分
12
WPF入门教程系列目录WPF入门教程系列二——Application介绍WPF入门教程系列三——Application介绍(续)WPF入门教程系列四——Dispatcher介绍WPF入门教程系列五——Window <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">介绍
WPF入门教程系列十一——依赖属性(一)WPF入门教程系列十五——WPF中的数据绑定(一)  添加ClickAction的实现

      <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">通过上面两步,我们将准备工具全部做完了,现在需要在.xmal文件中给Button按钮的Command属性绑定了一个方法叫做ClickSaveAction,DataGrid控件的SelectItem绑定MainWindowVM(ViewModel)中的AreaVM属性。
1. <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">在Visual <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">Studio <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">2022中打开MainWindows.xmal文件。
2. <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">对DataGrid的SelectItem进行了数据绑定。具体代码如下:
  1. <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
复制代码
3.将ClickSaveCommand绑定到Button按钮的Command属性上,这个ClickSaveCommand指令将代替<Button  x:Name="btnSave" Height="22" Width="120" Command="{Binding ClickSaveAction}" >保存</Button>按钮的click事件,将数据<Button  x:Name="btnSave" Height="22" Width="120" Command="{Binding ClickSaveAction}" >保存</Button>到数据库。具体代码如下:
  1. <Button  x:Name="btnSave" Height="22" Width="120" Command="{Binding ClickSaveAction}" >保存</Button>
复制代码
注意:Command属性仅仅作为Click行为的绑定,其他行为,如鼠标移入、移出等事件,要使用另外的MVVM方式进行绑定。
4.MainWindow.xmal的全部代码如下:
  1. <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">刷新 <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"><Button  x:Name="btnSave" Height="22" Width="120" Command="{Binding ClickSaveAction}" >保存</Button> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
复制代码
5.在Visual <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">Studio <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">2022中按F5键,启动WPF应用程序,使用鼠标左键点击“刷新”按钮,在数据呈现之后,使用鼠标左键选中DataGrid中的一条记录,进行修改,然后点击“<Button  x:Name="btnSave" Height="22" Width="120" Command="{Binding ClickSaveAction}" >保存</Button>”按钮。如下图。 <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">

6. <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">使用鼠标左键点击“刷新”按钮,在数据呈现之后,我们发现,刚才所做的修改,已经<Button  x:Name="btnSave" Height="22" Width="120" Command="{Binding ClickSaveAction}" >保存</Button>到数据库了。如下图。  <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">

数据已经<Button  x:Name="btnSave" Height="22" Width="120" Command="{Binding ClickSaveAction}" >保存</Button>到数据库,如下图。

 
7.如果我们要让<Button  x:Name="btnSave" Height="22" Width="120" Command="{Binding ClickSaveAction}" >保存</Button>按钮禁用,可以将执行的方法返回为False,具体代码如下:
  1. <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">/// <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">/// <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">命令是否可以执行 <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">/// <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">/// <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">bool <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">CanSaveExecute() <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">{
  2. <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">return <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">false; <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">}
复制代码
8. <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">在Visual <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">Studio <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">2022中按F5键,启动WPF应用程序,能够看到,界面中按钮已经是禁用状态了,我们绑定的这个命令是否可以执行,是直接影响到按钮能否被点击的!这个值会直接作用在按钮的IsEnabled上。如下图。
 

 
七、ComboBox下拉事件转为Command命令
用于 <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">DataGridComboBoxColumn <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">显示有一组项可供选择的数据,例如枚举。 <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">DataGridComboBoxColumn <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">允许用户从下拉列表中选择项。本文通过将Command命令绑定到comboBox的SelectionChanged事件上,实现自动刷新用户选择的省份的相应城市信息。
在WPF中默认的Command绑定往往不能满足覆盖所有的事件,例如ComboBox的SelectionChanged事件,DataGrid的SelectionChanged事件等等,这时就可以用到一个扩展库,来实现事件绑定Command。
微软从WPF <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">4.0开始,引入了一个比较实用的库——Interactions,这个库主要是通过附加属性来对UI控件注入一些新的功能,除了内置了一系列比较好用的功能外,还提供了比较良好的扩展接口。
    <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">本文这里简单的介绍一下Behavior这个扩展,顾名思义,Behavior可以赋予控件新的行为能力。
    <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">事件绑定到Command需要用到Interaction.Triggers这个属性 <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">,在这个属性里面添加一个或多个EventTrigger并指定关注的的事件名称,在EventTrigger中通过InvokeCommandAction来绑定事件对应的command。
1. <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">在Visual <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">Studio <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">2022中打开MainWindows.xmal文件,并在文件的开头添加如下命名空间。
  1. <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">xmlns:be="http://schemas.microsoft.com/xaml/behaviors"
复制代码
2. <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">在MainWindows.xmal文件中添加一个ComboBox控件,具体代码如下:
  1. <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"> <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">
复制代码
3.     <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">在写完了以上代码之后,Visual <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">Studio <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">2022的界面设计器中原来呈现的UI界面,消失了,显示“无效标记,有关详细信息,请查看错误列表”。如下图。

4.从错误信息中来查看,应用程序缺少程序集,没有安装相应的程序包。使用鼠标在菜单栏中选择“工具--》NuGet软件包管理器- <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">-》 <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">管理此解决方案的NuGet程序包”,如下图。

5.    <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">在Visual <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">Studio <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">2022的NuGet-解决方案标签页中,浏览页面的搜索框中输入“Microsoft.Xaml.Behaviors.Wpf”进行搜索,然后使用鼠标左键先选中要安装的项目名称,然后再点击“安装”按钮。如下图。 <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">

6.安装成功之后,错误列表中的错误信息消失了,UI设计器中的UI又回来了。如下图。
 

 

来源:https://www.cnblogs.com/chillsrc/archive/2023/06/11/17472473.html
免责声明:由于采集信息均来自互联网,如果侵犯了您的权益,请联系我们【E-Mail:cb@itdo.tech】 <DataGrid x:Name="gridArea" Grid.Row="1" d:ItemsSource="{d:SampleData ItemCount=5}" <br>AutoGenerateColumns="False"<br> HorizontalAlignment="Left" VerticalAlignment="Top" SelectedItem="{Binding Path=AreaVM,  <br>                      Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}">我们会及时删除侵权内容,谢谢合作!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x

举报 回复 使用道具