TestPage.xaml 1.2 KB

1234567891011121314151617181920212223242526272829
  1. <Page x:Class="MvvmScaffoldFrame48.WPFPage.TestPage"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:MvvmScaffoldFrame48.WPFPage"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="TestPage">
  10. <Grid Cursor="Hand">
  11. <StackPanel Grid.Column="0" Margin="0,0,0,50">
  12. <ToolBar>
  13. <Label Content="姓名:"></Label>
  14. <TextBox Text="{Binding Name}" Width="50"></TextBox>
  15. <Label Content="邮箱:"></Label>
  16. <TextBox Text="{Binding Email}" Width="100"></TextBox>
  17. <Button Content="添加"
  18. Command="{Binding AddUserCommand }"></Button>
  19. <Button Content="测试"
  20. Command="{Binding TestCommand }"></Button>
  21. </ToolBar>
  22. <StackPanel>
  23. <DataGrid ItemsSource="{Binding Users}"></DataGrid>
  24. </StackPanel>
  25. </StackPanel>
  26. </Grid>
  27. </Page>