星火微课系统客户端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

OverwrideDefaultControlStyles.xaml 1.9KB

3 jaren geleden
3 jaren geleden
3 jaren geleden
123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <ResourceDictionary
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:view="clr-namespace:XHWK.WKTool.View">
  5. <ResourceDictionary.MergedDictionaries>
  6. <ResourceDictionary Source="pack://application:,,,/Resources/StyleScrolllview.xaml" />
  7. <ResourceDictionary Source="pack://application:,,,/Resources/StyleButton.xaml" />
  8. <ResourceDictionary Source="pack://application:,,,/Resources/StyleComboBox.xaml" />
  9. <ResourceDictionary Source="pack://application:,,,/Resources/StyleZRoundButton.xaml" />
  10. </ResourceDictionary.MergedDictionaries>
  11. <Style BasedOn="{StaticResource ForScrollbar}" TargetType="ScrollBar" />
  12. <Style BasedOn="{StaticResource ForScrollviewer}" TargetType="ScrollViewer" />
  13. <Style BasedOn="{StaticResource ZRoundButtonStyle}" TargetType="view:ZRoundButton" />
  14. <Style BasedOn="{StaticResource MyButton}" TargetType="Button" />
  15. <Style x:Key="ZWinStyle" TargetType="Window">
  16. <Setter Property="AllowsTransparency" Value="False" />
  17. <Setter Property="Background" Value="Transparent" />
  18. <Setter Property="BorderBrush" Value="Transparent" />
  19. <Setter Property="BorderThickness" Value="0" />
  20. <Setter Property="WindowChrome.WindowChrome">
  21. <Setter.Value>
  22. <WindowChrome
  23. CaptionHeight="0"
  24. CornerRadius="0"
  25. GlassFrameThickness="-1"
  26. NonClientFrameEdges="None"
  27. ResizeBorderThickness="0"
  28. UseAeroCaptionButtons="False" />
  29. </Setter.Value>
  30. </Setter>
  31. <Style.Triggers>
  32. <Trigger Property="WindowState" Value="Maximized">
  33. <Setter Property="BorderThickness" Value="6" />
  34. </Trigger>
  35. </Style.Triggers>
  36. </Style>
  37. </ResourceDictionary>