Style.xaml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <Style x:Key="ListItem" TargetType="TextBlock">
  2. <Setter Property="Margin" Value="10,-13.5,5,15" />
  3. <Setter Property="TextWrapping" Value="Wrap" />
  4. <Setter Property="HorizontalAlignment" Value="Left" />
  5. <Setter Property="FontSize" Value="14" />
  6. <Setter Property="Foreground" Value="Black" />
  7. </Style>
  8. <Style x:Key="ListItemLink" TargetType="local:MyTextButton">
  9. <Setter Property="Margin" Value="15,-15,5,15" />
  10. <Setter Property="TextElement.FontSize" Value="20" />
  11. </Style>
  12. <Style x:Key="ListStyle" TargetType="StackPanel">
  13. <Setter Property="Margin" Value="22,0,14,5" />
  14. </Style>
  15. <Style x:Key="Code" TargetType="Border">
  16. <Setter Property="Background" Value="#e0e0e0" />
  17. <Setter Property="BorderBrush" Value="#444" />
  18. <Setter Property="CornerRadius" Value="1" />
  19. <Setter Property="Margin" Value="5,0,5,0" />
  20. <Setter Property="BorderThickness" Value="1" />
  21. </Style>
  22. <Style TargetType="TextBox">
  23. <Setter Property="Background" Value="{x:Null}" />
  24. <Setter Property="Padding" Value="3,0,3,0" />
  25. <Setter Property="IsReadOnly" Value="True" />
  26. <Setter Property="BorderBrush" Value="{x:Null}" />
  27. </Style>
  28. <Style x:Key="imgTitle" TargetType="TextBlock">
  29. <Setter Property="FontSize" Value="14" />
  30. <Setter Property="Foreground" Value="#FF777777" />
  31. <Setter Property="HorizontalAlignment" Value="Center" />
  32. <Setter Property="Margin" Value="0,0,0,15" />
  33. </Style>
  34. <!--footnote-->
  35. <Style x:Key="footnote" TargetType="TextBlock">
  36. <Setter Property="FontSize" Value="14" />
  37. <Setter Property="Padding" Value="30,0" />
  38. <Setter Property="Margin" Value="0,20,0,15" />
  39. <Setter Property="Foreground" Value="#FF777777" />
  40. <Setter Property="TextWrapping" Value="Wrap" />
  41. </Style>
  42. <!--ButtonNameBorder-->
  43. <!--ImageButtonStyle-->
  44. <Style x:Key="ImgBtnImg" TargetType="Image">
  45. <Setter Property="MaxWidth" Value="70px" />
  46. <Setter Property="MaxHeight" Value="70px" />
  47. <Setter Property="Margin" Value="3" />
  48. </Style>
  49. <Style x:Key="ImgBtnBdr" TargetType="Border">
  50. <Setter Property="Background" Value="{DynamicResource ColorBrush7}" />
  51. <Setter Property="BorderBrush" Value="{DynamicResource ColorBrush3}" />
  52. <Setter Property="BorderThickness" Value="2px" />
  53. <Setter Property="CornerRadius" Value="5" />
  54. <Setter Property="Margin" Value="2px" />
  55. </Style>
  56. <Style x:Key="NameBdr" TargetType="Border">
  57. <Setter Property="Background" Value="{DynamicResource ColorBrush3}" />
  58. <Setter Property="BorderThickness" Value="0" />
  59. <Setter Property="CornerRadius" Value="5,5,0,0" />
  60. <Setter Property="Margin" Value="-2,-2,-2,2" />
  61. </Style>
  62. <Style x:Key="ImgBtnTxt" TargetType="TextBlock">
  63. <Setter Property="HorizontalAlignment" Value="Center" />
  64. <Setter Property="VerticalAlignment" Value="Center" />
  65. <Setter Property="Grid.Row" Value="0" />
  66. <Setter Property="Foreground" Value="{DynamicResource ColorBrush7}" />
  67. <Setter Property="FontSize" Value="12px" />
  68. <Setter Property="Margin" Value="8px,2px" />
  69. </Style>