ConfigWindow.xaml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <hc:Window x:Class="GeekDesk.Control.Windows.ConfigWindow"
  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:hc="https://handyorg.github.io/handycontrol"
  7. xmlns:local="clr-namespace:GeekDesk"
  8. Title="Setting"
  9. mc:Ignorable="d"
  10. WindowStartupLocation="CenterScreen"
  11. Height="550"
  12. Width="750"
  13. WindowStyle="None"
  14. ResizeMode="NoResize"
  15. AllowsTransparency="True"
  16. Background="#00FFFFFF" ShowInTaskbar="False"
  17. BorderThickness="0"
  18. Focusable="True"
  19. KeyDown="OnKeyDown"
  20. >
  21. <Grid Margin="30">
  22. <Grid.Effect>
  23. <DropShadowEffect BlurRadius="20" Direction="-90" Color="Gray"
  24. RenderingBias="Quality" ShadowDepth="2"/>
  25. </Grid.Effect>
  26. <Border Style="{StaticResource BorderBG}">
  27. <Grid Background="Transparent">
  28. <Grid.RowDefinitions>
  29. <RowDefinition Height="*"/>
  30. </Grid.RowDefinitions>
  31. <Grid.ColumnDefinitions>
  32. <ColumnDefinition Width="140"/>
  33. <ColumnDefinition Width="*"/>
  34. </Grid.ColumnDefinitions>
  35. <hc:Card Grid.Row="0" Grid.Column="0" Background="Transparent" BorderThickness="0">
  36. <hc:SideMenu AutoSelect="True" Background="Transparent" Margin="1,7,0,3">
  37. <hc:SideMenu.ItemContainerStyle>
  38. <Style TargetType="hc:SideMenuItem" BasedOn="{StaticResource MyMenuStyle}"/>
  39. </hc:SideMenu.ItemContainerStyle>
  40. <hc:SideMenuItem Header="关于"
  41. IsSelected="True"
  42. Selected="MemuClick"
  43. Tag="About"
  44. >
  45. <hc:SideMenuItem.Icon>
  46. <Button Background="Transparent"
  47. IsEnabled="False"
  48. Opacity="0.9"
  49. BorderThickness="0"
  50. hc:IconElement.Geometry="{StaticResource About}"
  51. hc:IconElement.Height="18"
  52. hc:IconElement.Width="18"
  53. HorizontalAlignment="Right"
  54. />
  55. </hc:SideMenuItem.Icon>
  56. </hc:SideMenuItem>
  57. <hc:SideMenuItem Header="显示设置"
  58. Tag="Theme"
  59. Selected="MemuClick">
  60. <hc:SideMenuItem.Icon>
  61. <Button Background="Transparent"
  62. IsEnabled="False"
  63. Opacity="1"
  64. BorderThickness="0"
  65. hc:IconElement.Geometry="{StaticResource Pannel}"
  66. hc:IconElement.Height="18"
  67. hc:IconElement.Width="18"
  68. HorizontalAlignment="Right"
  69. />
  70. </hc:SideMenuItem.Icon>
  71. </hc:SideMenuItem>
  72. <hc:SideMenuItem Header="动作"
  73. Tag="Motion"
  74. Selected="MemuClick">
  75. <hc:SideMenuItem.Icon>
  76. <Button Background="Transparent"
  77. IsEnabled="False"
  78. Opacity="1"
  79. BorderThickness="0"
  80. hc:IconElement.Geometry="{StaticResource Motion}"
  81. hc:IconElement.Height="18"
  82. hc:IconElement.Width="18"
  83. HorizontalAlignment="Right"
  84. />
  85. </hc:SideMenuItem.Icon>
  86. </hc:SideMenuItem>
  87. <hc:SideMenuItem Header="其它"
  88. Tag="Other"
  89. Selected="MemuClick">
  90. <hc:SideMenuItem.Icon>
  91. <Button Background="Transparent"
  92. IsEnabled="False"
  93. Opacity="1"
  94. BorderThickness="0"
  95. hc:IconElement.Geometry="{StaticResource Other}"
  96. hc:IconElement.Height="18"
  97. hc:IconElement.Width="18"
  98. HorizontalAlignment="Right"
  99. />
  100. </hc:SideMenuItem.Icon>
  101. </hc:SideMenuItem>
  102. </hc:SideMenu>
  103. </hc:Card>
  104. <hc:ScrollViewer Grid.Row="0" Grid.Column="1" BorderThickness="0" Margin="0,5,1,5">
  105. <hc:Card x:Name="RightCard" Height="480" BorderThickness="0" MouseDown="DragMove">
  106. <hc:Card.Background>
  107. <SolidColorBrush Opacity="0"/>
  108. </hc:Card.Background>
  109. </hc:Card>
  110. </hc:ScrollViewer>
  111. <Button Width="22" Height="22" Click="Close_Button_Click" Style="{StaticResource ButtonIcon}" Foreground="{DynamicResource {x:Static SystemColors.ControlDarkDarkBrushKey}}" hc:IconElement.Geometry="{StaticResource ErrorGeometry}" Padding="0" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="0,10,10,0" Grid.Column="1"/>
  112. </Grid>
  113. </Border>
  114. </Grid>
  115. </hc:Window>