ConfigWindow.xaml 7.0 KB

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