TextBlockStyle.xaml 1.3 KB

123456789101112131415161718192021222324252627
  1. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  3. <Style TargetType="TextBlock">
  4. <Setter Property="HorizontalAlignment" Value="Center"/>
  5. <Setter Property="VerticalAlignment" Value="Center"/>
  6. <!--<Setter Property="TextAlignment" Value="Center"/>-->
  7. <!--<Setter Property="FontFamily" Value="Arial" />-->
  8. </Style>
  9. <Style TargetType="TextBlock" x:Key="MainTextBlock" BasedOn="{StaticResource {x:Type TextBlock}}">
  10. <Setter Property="FontSize" Value="12"></Setter>
  11. <Setter Property="Foreground" Value="#373737"></Setter>
  12. <Setter Property="FontFamily" Value="Arial,SimSun"></Setter>
  13. </Style>
  14. <Style TargetType="TextBlock" x:Key="MessTextBlock" BasedOn="{StaticResource {x:Type TextBlock}}">
  15. <Setter Property="FontSize" Value="15"></Setter>
  16. <Setter Property="Foreground" Value="Black"></Setter>
  17. <Setter Property="FontFamily" Value="Arial,SimSun"></Setter>
  18. </Style>
  19. <Style TargetType="TextBlock" x:Key="MainBigTextBlock" BasedOn="{StaticResource {x:Type TextBlock}}">
  20. <Setter Property="FontSize" Value="25" />
  21. <Setter Property="HorizontalAlignment" Value="Left"/>
  22. </Style>
  23. </ResourceDictionary>