OtherControl.xaml 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <UserControl x:Class="GeekDesk.Control.UserControls.Config.OtherControl"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:cvt="clr-namespace:GeekDesk.Converts"
  7. xmlns:local="clr-namespace:GeekDesk.Control.UserControls.PannelCard"
  8. xmlns:hc="https://handyorg.github.io/handycontrol"
  9. mc:Ignorable="d"
  10. Background="Transparent"
  11. d:DesignHeight="400" d:DesignWidth="500"
  12. >
  13. <UserControl.Resources>
  14. <cvt:UpdateTypeConvert x:Key="UpdateTypeConvert"/>
  15. </UserControl.Resources>
  16. <Grid MouseDown="DragMove" Background="Transparent">
  17. <hc:SimplePanel Margin="20" >
  18. <StackPanel >
  19. <TextBlock Text="程序设置" />
  20. <hc:UniformSpacingPanel Spacing="10" Margin="20,8,0,0">
  21. <CheckBox x:Name="SelfStartUpBox" Content="开机自启动" IsChecked="{Binding SelfStartUp}" Click="SelfStartUpBox_Click">
  22. <CheckBox.Background>
  23. <LinearGradientBrush EndPoint="1,0" StartPoint="0,0">
  24. <GradientStop Color="#FF9EA3A6"/>
  25. </LinearGradientBrush>
  26. </CheckBox.Background>
  27. </CheckBox>
  28. </hc:UniformSpacingPanel>
  29. <hc:UniformSpacingPanel Spacing="10" Margin="20,6,0,0">
  30. <CheckBox Content="性能模式" IsChecked="{Binding PMModel}"
  31. hc:Poptip.HitMode="None"
  32. hc:Poptip.IsOpen="{Binding IsMouseOver, RelativeSource={RelativeSource Self}}"
  33. hc:Poptip.Content="开启性能模式将取消图标动画效果"
  34. hc:Poptip.Placement="TopLeft">
  35. <CheckBox.Background>
  36. <LinearGradientBrush EndPoint="1,0" StartPoint="0,0">
  37. <GradientStop Color="#FF9EA3A6"/>
  38. </LinearGradientBrush>
  39. </CheckBox.Background>
  40. </CheckBox>
  41. </hc:UniformSpacingPanel>
  42. <TextBlock Text="更新源" Margin="0,25,0,0"/>
  43. <hc:UniformSpacingPanel Spacing="10" Margin="20,8,0,0">
  44. <RadioButton Margin="10,0,0,0" Background="{DynamicResource SecondaryRegionBrush}"
  45. Style="{StaticResource RadioButtonIcon}" Content="Gitee"
  46. hc:IconElement.Geometry="{StaticResource Gitee}"
  47. Foreground="#B32225"
  48. IsChecked="{Binding UpdateType, Mode=TwoWay, Converter={StaticResource UpdateTypeConvert}, ConverterParameter=1}"/>
  49. <RadioButton Margin="10,0,0,0" Background="{DynamicResource SecondaryRegionBrush}"
  50. hc:IconElement.Geometry="{StaticResource GitHub}"
  51. Style="{StaticResource RadioButtonIcon}" Content="GitHub"
  52. Foreground="Black"
  53. IsChecked="{Binding UpdateType, Mode=TwoWay, Converter={StaticResource UpdateTypeConvert}, ConverterParameter=2}"/>
  54. </hc:UniformSpacingPanel>
  55. </StackPanel>
  56. </hc:SimplePanel>
  57. </Grid>
  58. </UserControl>