|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <UserControl
- x:Class="BPASmartClient.CustomResource.Pages.View.ReportView"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:BPASmartClient.CustomResource.Pages.View"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:pry="clr-namespace:BPASmartClient.CustomResource.UserControls"
- xmlns:vm="clr-namespace:BPASmartClient.CustomResource.Pages.ViewModel"
- d:DesignHeight="450"
- d:DesignWidth="800"
- mc:Ignorable="d">
-
- <UserControl.DataContext>
- <vm:ReportViewModel />
- </UserControl.DataContext>
-
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="40" />
- <RowDefinition />
- </Grid.RowDefinitions>
-
- <StackPanel Orientation="Horizontal">
- <Button
- Width="70"
- Margin="5,0"
- Command="{Binding AddCommand}"
- Content="添加数据" />
- <Button
- Width="70"
- Margin="5,0"
- Command="{Binding SaveCommand}"
- Content="保存数据" />
- <Button
- Width="70"
- Margin="5,0"
- Command="{Binding ReadCommand}"
- Content="获取数据" />
- </StackPanel>
-
- <Grid Grid.Row="1">
- <pry:DataGridEx ItemsSource="{Binding ReportData}" />
- </Grid>
-
- </Grid>
- </UserControl>
|