MainWindow.xaml 1.6 KB

123456789101112131415161718192021222324252627282930313233
  1. <Window x:Class="MvvmScaffoldFrame48.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:MvvmScaffoldFrame48"
  7. mc:Ignorable="d"
  8. Title="MainWindow" Height="450" Width="800" Loaded="Window_Loaded" Closing="Window_Closing">
  9. <Grid>
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="80"/>
  12. <RowDefinition Height="*"/>
  13. </Grid.RowDefinitions>
  14. <Grid Grid.Row="0" Background="#FF0050FF">
  15. <Grid.ColumnDefinitions>
  16. <ColumnDefinition Width="55"/>
  17. <ColumnDefinition Width="*"/>
  18. </Grid.ColumnDefinitions>
  19. <Button Grid.Column="0" x:Name="HomeButton" HorizontalAlignment="Left" VerticalAlignment="Center" Width="55" Background="{x:Null}" Height="80">
  20. <StackPanel>
  21. <Image Source="/FromImage/菜单_白.png" Stretch="Fill" HorizontalAlignment="Center"/>
  22. <TextBlock Text="菜单" HorizontalAlignment="Center" Foreground="White" />
  23. </StackPanel>
  24. </Button>
  25. <StackPanel Grid.Column="1" x:Name="HeardPanel" Orientation="Horizontal">
  26. </StackPanel>
  27. </Grid>
  28. <Grid Grid.Row="1">
  29. <Frame x:Name="ShowFrame" Margin="0,0,0,0" NavigationUIVisibility="Hidden"/>
  30. </Grid>
  31. </Grid>
  32. </Window>