Files
GeekDesk/Control/Windows/ConfigWindow.xaml

136 lines
7.3 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:xf="clr-namespace:XamlFlair;assembly=XamlFlair.WPF"
2023-03-31 18:17:24 +08:00
xmlns:local="clr-namespace:GeekDesk" xmlns:viewmodel="clr-namespace:GeekDesk.ViewModel" d:DataContext="{d:DesignInstance Type=viewmodel:AppConfig}"
2021-07-13 21:18:05 +08:00
Title="Setting"
2021-05-20 17:33:49 +08:00
mc:Ignorable="d"
WindowStartupLocation="CenterScreen"
Height="550"
Width="750"
2021-05-20 17:33:49 +08:00
WindowStyle="None"
ResizeMode="NoResize"
2021-05-20 17:33:49 +08:00
AllowsTransparency="True"
Background="#00FFFFFF" ShowInTaskbar="False"
BorderThickness="0"
2021-12-20 09:39:27 +08:00
Focusable="True"
KeyDown="OnKeyDown"
2021-05-20 17:33:49 +08:00
>
2021-05-28 18:01:19 +08:00
<Grid Margin="30">
2025-03-07 10:59:39 +08:00
<Grid.Effect>
<DropShadowEffect BlurRadius="20" Direction="-90" Color="Gray"
RenderingBias="Quality" ShadowDepth="2"/>
</Grid.Effect>
2025-03-07 10:59:39 +08:00
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Panel.ZIndex="9999" hc:Growl.GrowlParent="False" hc:Growl.Token="ConfigWindowAskGrowl" Grid.Column="1" Grid.Row="1"/>
<Grid hc:Dialog.Token="ConfigWindowDialog">
2022-05-10 15:33:06 +08:00
<hc:DialogContainer Margin="10">
<Border Style="{StaticResource BorderBG}">
<Grid Background="Transparent">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="140"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
2025-03-07 10:59:39 +08:00
2021-05-20 17:33:49 +08:00
2022-05-10 15:33:06 +08:00
<hc:Card Grid.Row="0" Grid.Column="0" Background="Transparent" BorderThickness="0">
2022-05-10 15:33:06 +08:00
<hc:SideMenu AutoSelect="True" Background="Transparent" Margin="1,7,0,3">
<hc:SideMenu.ItemContainerStyle>
<Style TargetType="hc:SideMenuItem" BasedOn="{StaticResource MyMenuStyle}"/>
</hc:SideMenu.ItemContainerStyle>
2022-05-10 15:33:06 +08:00
<hc:SideMenuItem Header="关于"
2021-05-31 17:31:16 +08:00
IsSelected="True"
Selected="MemuClick"
Tag="About"
>
2022-05-10 15:33:06 +08:00
<hc:SideMenuItem.Icon>
<Button Background="Transparent"
2021-07-13 17:29:33 +08:00
IsEnabled="False"
2021-09-15 10:12:44 +08:00
Opacity="0.9"
2021-07-13 17:29:33 +08:00
BorderThickness="0"
hc:IconElement.Geometry="{StaticResource About}"
hc:IconElement.Height="18"
hc:IconElement.Width="18"
HorizontalAlignment="Right"
/>
2022-05-10 15:33:06 +08:00
</hc:SideMenuItem.Icon>
</hc:SideMenuItem>
<hc:SideMenuItem Header="显示设置"
2021-05-31 17:31:16 +08:00
Tag="Theme"
Selected="MemuClick">
2022-05-10 15:33:06 +08:00
<hc:SideMenuItem.Icon>
<Button Background="Transparent"
2021-07-13 17:29:33 +08:00
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
/>
2022-05-10 15:33:06 +08:00
</hc:SideMenuItem.Icon>
</hc:SideMenuItem>
2021-05-31 17:31:16 +08:00
2022-05-10 15:33:06 +08:00
<hc:SideMenuItem Header="动作"
2021-05-31 17:31:16 +08:00
Tag="Motion"
Selected="MemuClick">
2022-05-10 15:33:06 +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"
/>
2022-05-10 15:33:06 +08:00
</hc:SideMenuItem.Icon>
</hc:SideMenuItem>
<hc:SideMenuItem Header="其它"
2021-07-21 11:15:51 +08:00
Tag="Other"
Selected="MemuClick">
2022-05-10 15:33:06 +08:00
<hc:SideMenuItem.Icon>
<Button Background="Transparent"
2021-07-21 11:15:51 +08:00
IsEnabled="False"
Opacity="1"
BorderThickness="0"
hc:IconElement.Geometry="{StaticResource Other}"
hc:IconElement.Height="18"
hc:IconElement.Width="18"
HorizontalAlignment="Right"
/>
2022-05-10 15:33:06 +08:00
</hc:SideMenuItem.Icon>
</hc:SideMenuItem>
</hc:SideMenu>
</hc:Card>
<hc:ScrollViewer Grid.Row="0" Grid.Column="1" BorderThickness="0" Margin="0,5,1,5">
2022-06-14 10:37:24 +08:00
<UniformGrid x:Name="UFG" xf:Animations.Primary="{xf:Animate BasedOn={StaticResource FadeIn}, Event=Visibility, Delay=0}">
<!--<hc:TransitioningContentControl TransitionMode="Left2RightWithFade">-->
2022-05-10 15:33:06 +08:00
<hc:Card x:Name="RightCard" BorderThickness="0" MouseDown="DragMove">
<hc:Card.Background>
<SolidColorBrush Opacity="0"/>
</hc:Card.Background>
</hc:Card>
<!--</hc:TransitioningContentControl>-->
2022-05-10 15:33:06 +08:00
</UniformGrid>
</hc:ScrollViewer>
2021-05-21 17:19:46 +08:00
2022-05-10 15:33:06 +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"/>
</Grid>
</Border>
</hc:DialogContainer>
</Grid>
</Grid>
2021-05-28 18:01:19 +08:00
2021-05-20 17:33:49 +08:00
</hc:Window>