Paths.xaml 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  2. <Style x:Key="PathBaseStyle" TargetType="Path">
  3. <Setter Property="Stretch" Value="Uniform" />
  4. <Setter Property="SnapsToDevicePixels" Value="True" />
  5. <Setter Property="FlowDirection" Value="LeftToRight" />
  6. </Style>
  7. <!-- 搜索 -->
  8. <Style
  9. x:Key="SearchPathStyle"
  10. TargetType="Path"
  11. BasedOn="{StaticResource PathBaseStyle}">
  12. <Setter Property="Data" Value="{StaticResource SearchGeometry}" />
  13. </Style>
  14. <!-- 全屏返回 -->
  15. <Style
  16. x:Key="FullScreenReturnPathStyle"
  17. TargetType="Path"
  18. BasedOn="{StaticResource PathBaseStyle}">
  19. <Setter Property="Data" Value="{StaticResource FullScreenReturnGeometry}" />
  20. </Style>
  21. <!-- 全屏 -->
  22. <Style
  23. x:Key="FullScreenPathStyle"
  24. TargetType="Path"
  25. BasedOn="{StaticResource PathBaseStyle}">
  26. <Setter Property="Data" Value="{StaticResource FullScreenGeometry}" />
  27. </Style>
  28. <!-- windows -->
  29. <Style
  30. x:Key="WindowsPathStyle"
  31. TargetType="Path"
  32. BasedOn="{StaticResource PathBaseStyle}">
  33. <Setter Property="Data" Value="{StaticResource WindowsGeometry}" />
  34. </Style>
  35. <!-- 保存 -->
  36. <Style
  37. x:Key="SavePathStyle"
  38. TargetType="Path"
  39. BasedOn="{StaticResource PathBaseStyle}">
  40. <Setter Property="Data" Value="{StaticResource SaveGeometry}" />
  41. </Style>
  42. <!-- 下载 -->
  43. <Style
  44. x:Key="DownloadPathStyle"
  45. TargetType="Path"
  46. BasedOn="{StaticResource PathBaseStyle}">
  47. <Setter Property="Data" Value="{StaticResource DownloadGeometry}" />
  48. </Style>
  49. <!-- 放大 -->
  50. <Style
  51. x:Key="EnlargePathStyle"
  52. TargetType="Path"
  53. BasedOn="{StaticResource PathBaseStyle}">
  54. <Setter Property="Data" Value="{StaticResource EnlargeGeometry}" />
  55. </Style>
  56. <!-- 缩小 -->
  57. <Style
  58. x:Key="ReducePathStyle"
  59. TargetType="Path"
  60. BasedOn="{StaticResource PathBaseStyle}">
  61. <Setter Property="Data" Value="{StaticResource ReduceGeometry}" />
  62. </Style>
  63. <!-- 向左旋转 -->
  64. <Style
  65. x:Key="RotatePathStyle"
  66. TargetType="Path"
  67. BasedOn="{StaticResource PathBaseStyle}">
  68. <Setter Property="Data" Value="{StaticResource RotateLeftGeometry}" />
  69. </Style>
  70. <!-- 日历 -->
  71. <Style
  72. x:Key="CalendarPathStyle"
  73. TargetType="Path"
  74. BasedOn="{StaticResource PathBaseStyle}">
  75. <Setter Property="Data" Value="{StaticResource CalendarGeometry}" />
  76. </Style>
  77. <!-- 删除 -->
  78. <Style
  79. x:Key="DeletePathStyle"
  80. TargetType="Path"
  81. BasedOn="{StaticResource PathBaseStyle}">
  82. <Setter Property="Data" Value="{StaticResource DeleteGeometry}" />
  83. </Style>
  84. <!-- 关闭 -->
  85. <Style
  86. x:Key="ClosePathStyle"
  87. TargetType="Path"
  88. BasedOn="{StaticResource PathBaseStyle}">
  89. <Setter Property="Data" Value="{StaticResource CloseGeometry}" />
  90. </Style>
  91. <!-- 下 -->
  92. <Style
  93. x:Key="DownPathStyle"
  94. TargetType="Path"
  95. BasedOn="{StaticResource PathBaseStyle}">
  96. <Setter Property="Data" Value="{StaticResource DownGeometry}" />
  97. </Style>
  98. <!-- 时钟 -->
  99. <Style
  100. x:Key="ClockPathStyle"
  101. TargetType="Path"
  102. BasedOn="{StaticResource PathBaseStyle}">
  103. <Setter Property="Data" Value="{StaticResource ClockGeometry}" />
  104. </Style>
  105. <!-- 向左 -->
  106. <Style
  107. x:Key="LeftPathStyle"
  108. TargetType="Path"
  109. BasedOn="{StaticResource PathBaseStyle}">
  110. <Setter Property="Data" Value="{StaticResource LeftGeometry}" />
  111. </Style>
  112. <!-- 向右 -->
  113. <Style
  114. x:Key="RightPathStyle"
  115. TargetType="Path"
  116. BasedOn="{StaticResource PathBaseStyle}">
  117. <Setter Property="RenderTransformOrigin" Value="0.5, 0.5" />
  118. <Setter Property="RenderTransform">
  119. <Setter.Value>
  120. <TransformGroup>
  121. <ScaleTransform ScaleX="-1" ScaleY="1" />
  122. <SkewTransform AngleX="0" AngleY="0" />
  123. <RotateTransform Angle="0" />
  124. <TranslateTransform />
  125. </TransformGroup>
  126. </Setter.Value>
  127. </Setter>
  128. <Setter Property="Data" Value="{StaticResource LeftGeometry}" />
  129. </Style>
  130. <!-- 上和下的组合 -->
  131. <Style
  132. x:Key="UpDownPathStyle"
  133. TargetType="Path"
  134. BasedOn="{StaticResource PathBaseStyle}">
  135. <Setter Property="Data" Value="{StaticResource UpDownGeometry}" />
  136. </Style>
  137. </ResourceDictionary>