IconfontWindow.xaml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <Window x:Class="GeekDesk.Control.Windows.IconfontWindow"
  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:local="clr-namespace:GeekDesk.Control.Windows"
  7. xmlns:hc="https://handyorg.github.io/handycontrol"
  8. xmlns:uc="clr-namespace:GeekDesk.Control.UserControls.IconFont"
  9. mc:Ignorable="d"
  10. Title="Svg"
  11. Height="520" Width="700"
  12. WindowStyle="None"
  13. ResizeMode="NoResize"
  14. AllowsTransparency="True"
  15. Background="Transparent" ShowInTaskbar="False"
  16. BorderThickness="0"
  17. Focusable="True"
  18. KeyDown="OnKeyDown"
  19. >
  20. <Window.Resources>
  21. <Style x:Key="HcTabControl" TargetType="hc:TabControl" BasedOn="{StaticResource TabControlInLine}">
  22. <Style.Setters>
  23. <Setter Property="Background" Value="Transparent"/>
  24. </Style.Setters>
  25. </Style>
  26. <Style x:Key="TabTitle" TargetType="hc:TabItem" BasedOn="{StaticResource TabItemInLine}">
  27. <Style.Setters>
  28. <Setter Property="Background">
  29. <Setter.Value>
  30. <SolidColorBrush Color="White" Opacity="0.68"/>
  31. </Setter.Value>
  32. </Setter>
  33. </Style.Setters>
  34. </Style>
  35. </Window.Resources>
  36. <Grid Margin="20">
  37. <Grid.Effect>
  38. <DropShadowEffect BlurRadius="30" Direction="-90" Color="Gray"
  39. RenderingBias="Quality" ShadowDepth="2"/>
  40. </Grid.Effect>
  41. <Border MouseDown="DragMove" Style="{StaticResource BorderBG}" hc:Dialog.Token="IconUrlDialog">
  42. <!--<Border.Background>
  43. --><!--<SolidColorBrush Color="AliceBlue" Opacity="0.9"/>--><!--
  44. <LinearGradientBrush Opacity="0.97">
  45. <GradientStop Color="#D1F0A4" Offset="0"/>
  46. <GradientStop Color="#97D282" Offset="1"/>
  47. </LinearGradientBrush>
  48. </Border.Background>-->
  49. <hc:DialogContainer>
  50. <Grid MouseDown="DragMove">
  51. <TextBox x:Name="CheckSettingUrl" Visibility="Collapsed" Text="{Binding IsSettingUrl}" TextChanged="CheckSettingUrl_TextChanged"/>
  52. <hc:TabControl x:Name="MyTabControl"
  53. IsAnimationEnabled="True"
  54. SelectionChanged="TabControl_SelectionChanged"
  55. ShowContextMenu="True"
  56. IsTabFillEnabled="True"
  57. Margin="20,30,20,20"
  58. Height="350"
  59. VerticalAlignment="Top"
  60. Style="{StaticResource HcTabControl}">
  61. <hc:TabItem Tag="System" IsSelected="True" Header="系统图标" hc:IconElement.Height="16" hc:IconElement.Width="16" hc:IconElement.Geometry="{StaticResource SystemIcon}" Style="{StaticResource TabTitle}">
  62. <hc:SimplePanel>
  63. <uc:IconPannel x:Name="SystemIcon"/>
  64. </hc:SimplePanel>
  65. </hc:TabItem>
  66. <hc:TabItem Tag="Custom" Header="自定义图标" hc:IconElement.Height="16" hc:IconElement.Width="16" hc:IconElement.Geometry="{StaticResource CustomIcon}" Style="{StaticResource TabTitle}">
  67. <hc:SimplePanel>
  68. <uc:IconPannel x:Name="CustomIcon"/>
  69. <hc:LoadingCircle x:Name="LoadingEle"/>
  70. </hc:SimplePanel>
  71. </hc:TabItem>
  72. </hc:TabControl>
  73. <Button Content="取消" Click="Close_Click" Margin="391,397.5,163,22.5"/>
  74. <Button Content="自定义设置" Click="CustomButton_Click" IsEnabled="False" Name="CustomButton" Style="{StaticResource Btn1}" Margin="447,397.5,71,22.5"/>
  75. <Button Content="确定" Click="Confirm_Click" Style="{StaticResource Btn1}" Margin="534,397.5,20,22.5" />
  76. </Grid>
  77. </hc:DialogContainer>
  78. </Border>
  79. </Grid>
  80. </Window>