星火微课系统客户端
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

OverwrideDefaultControlStyles.xaml 1.6KB

123456789101112131415161718192021222324252627282930313233343536
  1. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  2. <ResourceDictionary.MergedDictionaries>
  3. <ResourceDictionary Source="pack://application:,,,/Resources/StyleScrolllview.xaml" />
  4. <ResourceDictionary Source="pack://application:,,,/Resources/StyleButton.xaml" />
  5. </ResourceDictionary.MergedDictionaries>
  6. <Style BasedOn="{StaticResource for_scrollbar}" TargetType="ScrollBar" />
  7. <Style BasedOn="{StaticResource for_scrollviewer}" TargetType="ScrollViewer" />
  8. <Style BasedOn="{StaticResource MyButton}" TargetType="Button" />
  9. <Style x:Key="ZWinStyle" TargetType="Window">
  10. <Setter Property="AllowsTransparency" Value="False" />
  11. <Setter Property="Background" Value="Transparent" />
  12. <Setter Property="BorderBrush" Value="Transparent" />
  13. <Setter Property="BorderThickness" Value="0" />
  14. <Setter Property="WindowChrome.WindowChrome">
  15. <Setter.Value>
  16. <WindowChrome
  17. CaptionHeight="0"
  18. CornerRadius="0"
  19. GlassFrameThickness="-1"
  20. NonClientFrameEdges="None"
  21. ResizeBorderThickness="0"
  22. UseAeroCaptionButtons="False" />
  23. </Setter.Value>
  24. </Setter>
  25. <Style.Triggers>
  26. <Trigger Property="WindowState" Value="Maximized">
  27. <Setter Property="BorderThickness" Value="6" />
  28. </Trigger>
  29. </Style.Triggers>
  30. </Style>
  31. </ResourceDictionary>