Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

pirms 1 gada
12345678910111213141516171819202122232425262728293031323334353637
  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>