SystemItemWindow.xaml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. <Window x:Class="GeekDesk.Control.Windows.SystemItemWindow"
  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.SystemItem"
  9. xmlns:cvt="clr-namespace:GeekDesk.Converts"
  10. mc:Ignorable="d"
  11. Title="Svg"
  12. Height="520" Width="700"
  13. WindowStyle="None"
  14. ResizeMode="NoResize"
  15. AllowsTransparency="True"
  16. Background="Transparent" ShowInTaskbar="False"
  17. BorderThickness="0"
  18. Focusable="True"
  19. KeyDown="OnKeyDown"
  20. >
  21. <Window.Resources>
  22. <Style x:Key="HcTabControl" TargetType="hc:TabControl" BasedOn="{StaticResource TabControlInLine}">
  23. <Style.Setters>
  24. <Setter Property="Background" Value="Transparent"/>
  25. </Style.Setters>
  26. </Style>
  27. <Style x:Key="TabTitle" TargetType="hc:TabItem" BasedOn="{StaticResource TabItemInLine}">
  28. <Style.Setters>
  29. <Setter Property="Background">
  30. <Setter.Value>
  31. <SolidColorBrush Color="White" Opacity="0.68"/>
  32. </Setter.Value>
  33. </Setter>
  34. </Style.Setters>
  35. </Style>
  36. <cvt:MenuInfoConvert x:Key="MenuInfoConvert"/>
  37. </Window.Resources>
  38. <Grid Margin="20">
  39. <Grid.Effect>
  40. <DropShadowEffect BlurRadius="30" Direction="-90" Color="Gray"
  41. RenderingBias="Quality" ShadowDepth="2"/>
  42. </Grid.Effect>
  43. <Border MouseDown="DragMove" Style="{StaticResource BorderBG}" hc:Dialog.Token="IconUrlDialog">
  44. <hc:DialogContainer>
  45. <Grid MouseDown="DragMove">
  46. <StackPanel HorizontalAlignment="Center" Margin="10">
  47. <Border CornerRadius="8" Height="30" Width="150">
  48. <Border.Background>
  49. <SolidColorBrush Color="White" Opacity="0.7"/>
  50. </Border.Background>
  51. <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
  52. <Button Background="Transparent"
  53. BorderThickness="0"
  54. hc:IconElement.Geometry="{Binding AppConfig.SelectedMenuIndex, Mode=OneWay, Converter={StaticResource MenuInfoConvert}, ConverterParameter=1}"
  55. hc:IconElement.Height="18"
  56. hc:IconElement.Width="18"
  57. IsEnabled="False"
  58. Opacity="1"
  59. >
  60. </Button>
  61. <TextBlock x:Name="MenuName" Text="{Binding AppConfig.SelectedMenuIndex, Mode=OneWay, Converter={StaticResource MenuInfoConvert}, ConverterParameter=2}" FontSize="16" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  62. </StackPanel>
  63. </Border>
  64. </StackPanel>
  65. <hc:TabControl x:Name="MyTabControl"
  66. IsAnimationEnabled="True"
  67. SelectionChanged="TabControl_SelectionChanged"
  68. ShowContextMenu="True"
  69. IsTabFillEnabled="True"
  70. Margin="20,60,20,20"
  71. Height="350"
  72. VerticalAlignment="Top"
  73. Style="{StaticResource HcTabControl}">
  74. <hc:TabItem Tag="System" IsSelected="True" Header="系统应用" hc:IconElement.Height="16" hc:IconElement.Width="16" hc:IconElement.Geometry="{StaticResource SystemIcon}" Style="{StaticResource TabTitle}">
  75. <hc:SimplePanel>
  76. <uc:SystemItem x:Name="SystemItem"/>
  77. </hc:SimplePanel>
  78. </hc:TabItem>
  79. <hc:TabItem x:Name="StartMenu" Tag="StartMenu" Header="开始菜单应用" hc:IconElement.Height="16" hc:IconElement.Width="16" hc:IconElement.Geometry="{StaticResource SystemIcon}" Style="{StaticResource TabTitle}">
  80. <hc:SimplePanel>
  81. <uc:SystemItem x:Name="StartMenuItem"/>
  82. <hc:LoadingCircle x:Name="StartMenuLoading"/>
  83. </hc:SimplePanel>
  84. </hc:TabItem>
  85. <!--<hc:TabItem Tag="Store" Header="商店应用(未开放)" hc:IconElement.Height="16" hc:IconElement.Width="16" hc:IconElement.Geometry="{StaticResource CustomIcon}" Style="{StaticResource TabTitle}">
  86. <hc:SimplePanel>
  87. <uc:SystemItem x:Name="StoreItem"/>
  88. </hc:SimplePanel>
  89. </hc:TabItem>-->
  90. </hc:TabControl>
  91. <Button Content="关闭" Click="Close_Click" Margin="594,420,20,31.5"/>
  92. </Grid>
  93. </hc:DialogContainer>
  94. </Border>
  95. </Grid>
  96. </Window>