ConfigWindow.xaml 7.3 KB

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