Files
GeekDesk/Control/Windows/ConfigWindow.xaml

132 lines
6.2 KiB
Plaintext
Raw Normal View History

<hc:Window x:Class="GeekDesk.Control.Windows.ConfigWindow"
2021-05-20 17:33:49 +08:00
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:hc="https://handyorg.github.io/handycontrol"
xmlns:local="clr-namespace:GeekDesk"
2021-07-13 21:18:05 +08:00
Title="Setting"
2021-05-20 17:33:49 +08:00
mc:Ignorable="d"
WindowStartupLocation="CenterScreen"
Height="450"
Width="600"
WindowStyle="None"
AllowsTransparency="True"
Background="Transparent" ShowInTaskbar="False"
2021-05-20 17:33:49 +08:00
>
2021-05-28 18:01:19 +08:00
2021-05-31 17:31:16 +08:00
<Window.Resources>
<Style x:Key="MenuStyle" TargetType="hc:SideMenuItem" BasedOn="{StaticResource SideMenuItemBaseStyle}">
<Style.Setters>
<Setter Property="Background" Value="AliceBlue"/>
</Style.Setters>
<Style.Triggers>
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="#FFE2E2E2"/>
</Trigger>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="#FFDAD7D7"/>
</Trigger>
</Style.Triggers>
</Style>
</Window.Resources>
<Border CornerRadius="8" BorderThickness="0">
2021-05-21 17:19:46 +08:00
<Border.Background>
<SolidColorBrush Color="AliceBlue" Opacity="0.9"/>
</Border.Background>
2021-05-20 17:33:49 +08:00
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="140"/>
2021-05-20 17:33:49 +08:00
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<hc:Card Grid.Row="0" Grid.Column="0">
2021-05-31 17:31:16 +08:00
<hc:SideMenu BorderThickness="1"
AutoSelect="True"
>
<hc:SideMenu.Background>
<SolidColorBrush Color="AliceBlue"/>
</hc:SideMenu.Background>
<hc:SideMenu.ItemContainerStyle>
<Style TargetType="hc:SideMenuItem" BasedOn="{StaticResource MenuStyle}"/>
</hc:SideMenu.ItemContainerStyle>
<hc:SideMenuItem Header="关于"
IsSelected="True"
Selected="MemuClick"
Tag="About"
>
2021-05-20 17:33:49 +08:00
<hc:SideMenuItem.Icon>
<Button Background="Transparent"
2021-07-13 17:29:33 +08:00
IsEnabled="False"
Opacity="1"
BorderThickness="0"
hc:IconElement.Geometry="{StaticResource About}"
hc:IconElement.Height="18"
hc:IconElement.Width="18"
HorizontalAlignment="Right"
/>
2021-05-20 17:33:49 +08:00
</hc:SideMenuItem.Icon>
</hc:SideMenuItem>
2021-05-31 17:31:16 +08:00
<hc:SideMenuItem Header="显示设置"
Tag="Theme"
Selected="MemuClick">
<hc:SideMenuItem.Icon>
2021-07-13 17:29:33 +08:00
<Button Background="Transparent"
IsEnabled="False"
Opacity="1"
2021-05-31 17:31:16 +08:00
BorderThickness="0"
hc:IconElement.Geometry="{StaticResource Pannel}"
hc:IconElement.Height="18"
hc:IconElement.Width="18"
HorizontalAlignment="Right"
2021-07-13 17:29:33 +08:00
/>
2021-05-31 17:31:16 +08:00
</hc:SideMenuItem.Icon>
</hc:SideMenuItem>
<hc:SideMenuItem Header="动作"
Tag="Motion"
Selected="MemuClick">
2021-05-20 17:33:49 +08:00
<hc:SideMenuItem.Icon>
<Button Background="Transparent"
2021-07-13 17:29:33 +08:00
IsEnabled="False"
Opacity="1"
2021-05-21 17:19:46 +08:00
BorderThickness="0"
2021-05-31 17:31:16 +08:00
hc:IconElement.Geometry="{StaticResource Motion}"
2021-05-21 17:19:46 +08:00
hc:IconElement.Height="18"
hc:IconElement.Width="18"
HorizontalAlignment="Right"
/>
2021-05-20 17:33:49 +08:00
</hc:SideMenuItem.Icon>
</hc:SideMenuItem>
2021-07-21 11:15:51 +08:00
<hc:SideMenuItem Header="其它"
Tag="Other"
Selected="MemuClick">
<hc:SideMenuItem.Icon>
<Button Background="Transparent"
IsEnabled="False"
Opacity="1"
BorderThickness="0"
hc:IconElement.Geometry="{StaticResource Other}"
hc:IconElement.Height="18"
hc:IconElement.Width="18"
HorizontalAlignment="Right"
/>
</hc:SideMenuItem.Icon>
</hc:SideMenuItem>
2021-05-20 17:33:49 +08:00
</hc:SideMenu>
</hc:Card>
2021-05-28 18:01:19 +08:00
<hc:ScrollViewer Grid.Row="0" Grid.Column="1">
<hc:Card x:Name="RightCard" Height="448">
2021-05-28 18:01:19 +08:00
</hc:Card>
</hc:ScrollViewer>
2021-05-21 17:19:46 +08:00
2021-05-31 17:31:16 +08:00
<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"/>
2021-05-28 18:01:19 +08:00
</Grid>
2021-05-20 17:33:49 +08:00
</Border>
2021-05-28 18:01:19 +08:00
2021-05-20 17:33:49 +08:00
</hc:Window>