IconfontWindow.xaml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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="IconfontWindow"
  11. Height="450" Width="600"
  12. WindowStyle="None"
  13. AllowsTransparency="True"
  14. Background="AliceBlue"
  15. MouseDown="DragMove"
  16. >
  17. <Window.Resources>
  18. <Style x:Key="LeftTB" TargetType="TextBlock" BasedOn="{StaticResource TextBlockBaseStyle}">
  19. <Setter Property="Width" Value="80"/>
  20. <Setter Property="HorizontalAlignment" Value="Left"/>
  21. <Setter Property="VerticalAlignment" Value="Center"/>
  22. <Setter Property="FontSize" Value="11"/>
  23. </Style>
  24. </Window.Resources>
  25. <Border MouseDown="DragMove">
  26. <Grid MouseDown="DragMove">
  27. <TextBox x:Name="CheckSettingUrl" Visibility="Collapsed" Text="{Binding IsSettingUrl}" TextChanged="CheckSettingUrl_TextChanged"/>
  28. <hc:TabControl x:Name="MyTabControl" IsAnimationEnabled="True" SelectionChanged="TabControl_SelectionChanged" ShowContextMenu="True" IsTabFillEnabled="True" Margin="20,30,20,20" Height="350" VerticalAlignment="Top">
  29. <hc:TabItem Tag="System" IsSelected="True" Header="系统图标" hc:IconElement.Height="16" hc:IconElement.Width="16" hc:IconElement.Geometry="{StaticResource CalendarGeometry}" >
  30. <hc:SimplePanel Background="AliceBlue">
  31. <uc:IconPannel x:Name="SystemIcon"/>
  32. </hc:SimplePanel>
  33. </hc:TabItem>
  34. <hc:TabItem Tag="Custom" Header="自定义图标" hc:IconElement.Height="16" hc:IconElement.Width="16" hc:IconElement.Geometry="{StaticResource CalendarGeometry}">
  35. <hc:SimplePanel Background="AliceBlue">
  36. <uc:IconPannel x:Name="CustomIcon"/>
  37. <hc:LoadingCircle x:Name="LoadingEle"/>
  38. </hc:SimplePanel>
  39. </hc:TabItem>
  40. </hc:TabControl>
  41. <Button Content="取消" Click="Close_Click" Margin="391,397.5,163,22.5"/>
  42. <Button Content="自定义设置" Click="CustomButton_Click" IsEnabled="False" Name="CustomButton" Background="#5BC0DE" Foreground="White" RenderTransformOrigin="-0.868,0.583" Margin="447,397.5,71,22.5"/>
  43. <Button Content="确定" Click="Confirm_Click" Background="#5BC0DE" Foreground="White" Margin="534,397.5,20,22.5" RenderTransformOrigin="0.696,0.45"/>
  44. </Grid>
  45. </Border>
  46. </Window>