1
0

IconfontWindow.xaml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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. <Border MouseDown="DragMove">
  18. <Grid MouseDown="DragMove">
  19. <hc:TabControl x:Name="MyTabControl" IsAnimationEnabled="True" SelectionChanged="TabControl_SelectionChanged" ShowContextMenu="True" IsTabFillEnabled="True" Margin="20,30,20,20" Height="350" VerticalAlignment="Top">
  20. <hc:TabItem Tag="System" Header="系统" hc:IconElement.Height="16" hc:IconElement.Width="16" hc:IconElement.Geometry="{StaticResource CalendarGeometry}" >
  21. <hc:SimplePanel Background="AliceBlue">
  22. <uc:IconPannel x:Name="System" />
  23. </hc:SimplePanel>
  24. </hc:TabItem>
  25. <hc:TabItem Tag="Custom" IsSelected="True" Header="自定义" hc:IconElement.Height="16" hc:IconElement.Width="16" hc:IconElement.Geometry="{StaticResource CalendarGeometry}">
  26. <hc:SimplePanel Background="AliceBlue">
  27. <uc:IconPannel x:Name="Custom" />
  28. </hc:SimplePanel>
  29. </hc:TabItem>
  30. </hc:TabControl>
  31. <Button Content="取消" Click="Close_Click" Margin="406,397.5,148,22.5"/>
  32. <Button Content="确定" Click="Confirm_Click" Background="#5BC0DE" Foreground="White" Margin="500.5,397.5,53.5,22.5" RenderTransformOrigin="0.696,0.45"/>
  33. </Grid>
  34. </Border>
  35. </Window>