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.

37 lines
2.0 KiB

  1. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  3. <ResourceDictionary.MergedDictionaries>
  4. <ResourceDictionary Source="pack://application:,,,/BPA.UIControl;component/Themes/Resources/Default.xaml" />
  5. </ResourceDictionary.MergedDictionaries>
  6. <Style x:Key="RubyerLabel" TargetType="{x:Type Label}">
  7. <Setter Property="Background" Value="Transparent" />
  8. <Setter Property="Foreground" Value="{DynamicResource DefaultForeground}" />
  9. <Setter Property="HorizontalContentAlignment" Value="Left" />
  10. <Setter Property="VerticalContentAlignment" Value="Center" />
  11. <Setter Property="Padding" Value="7 0" />
  12. <Setter Property="Template">
  13. <Setter.Value>
  14. <ControlTemplate TargetType="{x:Type Label}">
  15. <Border Padding="{TemplateBinding Padding}"
  16. Background="{TemplateBinding Background}"
  17. BorderBrush="{TemplateBinding BorderBrush}"
  18. BorderThickness="{TemplateBinding BorderThickness}"
  19. SnapsToDevicePixels="true">
  20. <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
  21. VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
  22. RecognizesAccessKey="True"
  23. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  24. </Border>
  25. <ControlTemplate.Triggers>
  26. <Trigger Property="IsEnabled" Value="false">
  27. <Setter Property="Opacity" Value="{DynamicResource UnenableOpcity}" />
  28. </Trigger>
  29. </ControlTemplate.Triggers>
  30. </ControlTemplate>
  31. </Setter.Value>
  32. </Setter>
  33. </Style>
  34. </ResourceDictionary>