ConfigWindow.xaml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. <Grid hc:Dialog.Token="ConfigWindowDialog">
  27. <hc:DialogContainer Margin="10">
  28. <Border Style="{StaticResource BorderBG}">
  29. <Grid Background="Transparent">
  30. <Grid.RowDefinitions>
  31. <RowDefinition Height="*"/>
  32. </Grid.RowDefinitions>
  33. <Grid.ColumnDefinitions>
  34. <ColumnDefinition Width="140"/>
  35. <ColumnDefinition Width="*"/>
  36. </Grid.ColumnDefinitions>
  37. <hc:Card Grid.Row="0" Grid.Column="0" Background="Transparent" BorderThickness="0">
  38. <hc:SideMenu AutoSelect="True" Background="Transparent" Margin="1,7,0,3">
  39. <hc:SideMenu.ItemContainerStyle>
  40. <Style TargetType="hc:SideMenuItem" BasedOn="{StaticResource MyMenuStyle}"/>
  41. </hc:SideMenu.ItemContainerStyle>
  42. <hc:SideMenuItem Header="关于"
  43. IsSelected="True"
  44. Selected="MemuClick"
  45. Tag="About"
  46. >
  47. <hc:SideMenuItem.Icon>
  48. <Button Background="Transparent"
  49. IsEnabled="False"
  50. Opacity="0.9"
  51. BorderThickness="0"
  52. hc:IconElement.Geometry="{StaticResource About}"
  53. hc:IconElement.Height="18"
  54. hc:IconElement.Width="18"
  55. HorizontalAlignment="Right"
  56. />
  57. </hc:SideMenuItem.Icon>
  58. </hc:SideMenuItem>
  59. <hc:SideMenuItem Header="显示设置"
  60. Tag="Theme"
  61. Selected="MemuClick">
  62. <hc:SideMenuItem.Icon>
  63. <Button Background="Transparent"
  64. IsEnabled="False"
  65. Opacity="1"
  66. BorderThickness="0"
  67. hc:IconElement.Geometry="{StaticResource Pannel}"
  68. hc:IconElement.Height="18"
  69. hc:IconElement.Width="18"
  70. HorizontalAlignment="Right"
  71. />
  72. </hc:SideMenuItem.Icon>
  73. </hc:SideMenuItem>
  74. <hc:SideMenuItem Header="动作"
  75. Tag="Motion"
  76. Selected="MemuClick">
  77. <hc:SideMenuItem.Icon>
  78. <Button Background="Transparent"
  79. IsEnabled="False"
  80. Opacity="1"
  81. BorderThickness="0"
  82. hc:IconElement.Geometry="{StaticResource Motion}"
  83. hc:IconElement.Height="18"
  84. hc:IconElement.Width="18"
  85. HorizontalAlignment="Right"
  86. />
  87. </hc:SideMenuItem.Icon>
  88. </hc:SideMenuItem>
  89. <hc:SideMenuItem Header="其它"
  90. Tag="Other"
  91. Selected="MemuClick">
  92. <hc:SideMenuItem.Icon>
  93. <Button Background="Transparent"
  94. IsEnabled="False"
  95. Opacity="1"
  96. BorderThickness="0"
  97. hc:IconElement.Geometry="{StaticResource Other}"
  98. hc:IconElement.Height="18"
  99. hc:IconElement.Width="18"
  100. HorizontalAlignment="Right"
  101. />
  102. </hc:SideMenuItem.Icon>
  103. </hc:SideMenuItem>
  104. </hc:SideMenu>
  105. </hc:Card>
  106. <hc:ScrollViewer Grid.Row="0" Grid.Column="1" BorderThickness="0" Margin="0,5,1,5">
  107. <UniformGrid x:Name="UFG">
  108. <hc:TransitioningContentControl TransitionMode="Left2RightWithFade">
  109. <hc:Card x:Name="RightCard" BorderThickness="0" MouseDown="DragMove">
  110. <hc:Card.Background>
  111. <SolidColorBrush Opacity="0"/>
  112. </hc:Card.Background>
  113. </hc:Card>
  114. </hc:TransitioningContentControl>
  115. </UniformGrid>
  116. </hc:ScrollViewer>
  117. <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"/>
  118. </Grid>
  119. </Border>
  120. </hc:DialogContainer>
  121. </Grid>
  122. </Grid>
  123. </hc:Window>