MainWindow.xaml 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <Window x:Class="CCDCountWpf.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:CCDCountWpf"
  7. mc:Ignorable="d"
  8. Title="MainWindow" Height="557" Width="820" MinWidth="900" MinHeight="600" Closing="Window_Closing">
  9. <Grid Background="#FF00A0FB">
  10. <Grid x:Name="HeardGrid" Height="60" VerticalAlignment="Top">
  11. <Button x:Name="ExitBtn" HorizontalAlignment="Left" Height="60" Width="60" Click="ExitBtn_Click" Background="{x:Null}">
  12. <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
  13. <Image Source="/FromImage/退出.png" Width="28" Height="28" />
  14. <TextBlock Text="系统退出" FontSize="10" FontWeight="Bold" Margin="0,8,0,0" HorizontalAlignment="Center" />
  15. </StackPanel>
  16. </Button>
  17. <Button x:Name="MainPageBtn" HorizontalAlignment="Left" Height="60" Width="60" Margin="60,0,0,0" Background="{x:Null}" Click="MainPageBtn_Click">
  18. <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
  19. <Image Source="/FromImage/相机小.png" Width="32" Height="32" />
  20. <TextBlock Text="主界面" FontSize="10" FontWeight="Bold" Margin="0,5,0,0" HorizontalAlignment="Center" />
  21. </StackPanel>
  22. </Button>
  23. <Button HorizontalAlignment="Left" Height="60" Width="60" Margin="120,0,0,0" Background="{x:Null}">
  24. <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
  25. <Image Source="/FromImage/设置.png" Width="32" Height="32" />
  26. <TextBlock Text="设置界面" FontSize="10" FontWeight="Bold" Margin="0,5,0,0" HorizontalAlignment="Center" />
  27. </StackPanel>
  28. </Button>
  29. <Button x:Name="RnIdentifyBtn" HorizontalAlignment="Left" Height="60" Width="60" Margin="180,0,0,0" Background="{x:Null}" Click="RnIdentifyBtn_Click">
  30. <StackPanel Orientation="Vertical" HorizontalAlignment="Center">
  31. <Image Source="/FromImage/运行.png" Width="32" Height="32" />
  32. <TextBlock Text="开始运行" FontSize="10" FontWeight="Bold" Margin="0,5,0,0" HorizontalAlignment="Center" />
  33. </StackPanel>
  34. </Button>
  35. </Grid>
  36. <Frame x:Name="ShowFrame" Margin="0,60,0,0"/>
  37. </Grid>
  38. </Window>