TextBlock.xaml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  2. xmlns:hc="clr-namespace:HandyControl.Controls"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  4. <!--默认样式-->
  5. <Style x:Key="TextBlockDefault" BasedOn="{StaticResource TextBlockBaseStyle}" TargetType="TextBlock"/>
  6. <Style x:Key="TextBlockDefaultAccent" BasedOn="{StaticResource TextBlockBaseStyle}" TargetType="TextBlock">
  7. <Setter Property="Foreground" Value="{DynamicResource AccentBrush}"/>
  8. </Style>
  9. <Style x:Key="TextBlockDefaultPrimary" BasedOn="{StaticResource TextBlockBaseStyle}" TargetType="TextBlock">
  10. <Setter Property="Foreground" Value="{DynamicResource PrimaryBrush}"/>
  11. </Style>
  12. <Style x:Key="TextBlockDefaultDanger" BasedOn="{StaticResource TextBlockBaseStyle}" TargetType="TextBlock">
  13. <Setter Property="Foreground" Value="{DynamicResource DangerBrush}"/>
  14. </Style>
  15. <Style x:Key="TextBlockDefaultWarning" BasedOn="{StaticResource TextBlockBaseStyle}" TargetType="TextBlock">
  16. <Setter Property="Foreground" Value="{DynamicResource WarningBrush}"/>
  17. </Style>
  18. <Style x:Key="TextBlockDefaultInfo" BasedOn="{StaticResource TextBlockBaseStyle}" TargetType="TextBlock">
  19. <Setter Property="Foreground" Value="{DynamicResource InfoBrush}"/>
  20. </Style>
  21. <Style x:Key="TextBlockDefaultSuccess" BasedOn="{StaticResource TextBlockBaseStyle}" TargetType="TextBlock">
  22. <Setter Property="Foreground" Value="{DynamicResource SuccessBrush}"/>
  23. </Style>
  24. <Style x:Key="TextBlockDefaultSecLight" BasedOn="{StaticResource TextBlockBaseStyle}" TargetType="TextBlock">
  25. <Setter Property="Foreground" Value="{DynamicResource SecondaryTextBrush}"/>
  26. </Style>
  27. <Style x:Key="TextBlockDefaultThiLight" BasedOn="{StaticResource TextBlockBaseStyle}" TargetType="TextBlock">
  28. <Setter Property="Foreground" Value="{DynamicResource ThirdlyTextBrush}"/>
  29. </Style>
  30. <Style x:Key="TextBlockLarge" BasedOn="{StaticResource TextBlockBaseStyle}" TargetType="TextBlock">
  31. <Setter Property="FontSize" Value="{StaticResource LargeFontSize}"/>
  32. </Style>
  33. <Style x:Key="TextBlockTitle" BasedOn="{StaticResource TextBlockBaseStyle}" TargetType="TextBlock">
  34. <Setter Property="FontSize" Value="{StaticResource HeadFontSize}"/>
  35. </Style>
  36. <Style x:Key="TextBlockSubTitle" BasedOn="{StaticResource TextBlockBaseStyle}" TargetType="TextBlock">
  37. <Setter Property="FontSize" Value="{StaticResource SubHeadFontSize}"/>
  38. </Style>
  39. <Style x:Key="TextBlockLargeBold" BasedOn="{StaticResource TextBlockBoldBaseStyle}" TargetType="TextBlock">
  40. <Setter Property="FontSize" Value="{StaticResource LargeFontSize}"/>
  41. </Style>
  42. <Style x:Key="TextBlockTitleBold" BasedOn="{StaticResource TextBlockBoldBaseStyle}" TargetType="TextBlock">
  43. <Setter Property="FontSize" Value="{StaticResource HeadFontSize}"/>
  44. </Style>
  45. <Style x:Key="TextBlockSubTitleBold" BasedOn="{StaticResource TextBlockBoldBaseStyle}" TargetType="TextBlock">
  46. <Setter Property="FontSize" Value="{StaticResource SubHeadFontSize}"/>
  47. </Style>
  48. <Style x:Key="TextBlockDefaultBold" BasedOn="{StaticResource TextBlockBoldBaseStyle}" TargetType="TextBlock"/>
  49. <Style BasedOn="{StaticResource HighlightTextBlockBaseStyle}" TargetType="hc:HighlightTextBlock"/>
  50. </ResourceDictionary>