终端一体化运控平台
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 

219 righe
10 KiB

  1. <ResourceDictionary
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:pry="clr-namespace:BPASmartClient.CustomResource.UserControls">
  5. <!--#region 右斜边按钮-->
  6. <Style x:Key="BeveledRadioButtonStyle" TargetType="{x:Type RadioButton}">
  7. <Setter Property="FontFamily" Value="楷体" />
  8. <Setter Property="Width" Value="100" />
  9. <Setter Property="Height" Value="30" />
  10. <Setter Property="IsChecked" Value="False" />
  11. <Setter Property="FontSize" Value="13" />
  12. <Setter Property="Foreground" Value="#ddd" />
  13. <Setter Property="Template">
  14. <Setter.Value>
  15. <ControlTemplate TargetType="{x:Type RadioButton}">
  16. <Grid x:Name="gr" SnapsToDevicePixels="True">
  17. <pry:BeveledButton
  18. x:Name="bb"
  19. FillColor="#4B8EC4"
  20. IsParallelogram="False"
  21. StrokeThickness="1" />
  22. <ContentPresenter
  23. x:Name="contentPresenter"
  24. Margin="0,0,10,0"
  25. HorizontalAlignment="Center"
  26. VerticalAlignment="Center"
  27. Content="{TemplateBinding Content}"
  28. ContentStringFormat="{TemplateBinding ContentStringFormat}"
  29. ContentTemplate="{TemplateBinding ContentTemplate}"
  30. Focusable="False"
  31. RecognizesAccessKey="True"
  32. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  33. </Grid>
  34. <ControlTemplate.Triggers>
  35. <Trigger Property="IsChecked" Value="False">
  36. <Setter TargetName="bb" Property="FillColor" Value="#55007acc" />
  37. </Trigger>
  38. </ControlTemplate.Triggers>
  39. </ControlTemplate>
  40. </Setter.Value>
  41. </Setter>
  42. </Style>
  43. <!--#endregion-->
  44. <!--#region 平行四边形按钮-->
  45. <Style x:Key="ParallelogramRadioButtonStyle" TargetType="{x:Type RadioButton}">
  46. <Setter Property="FontFamily" Value="楷体" />
  47. <Setter Property="Width" Value="100" />
  48. <Setter Property="IsChecked" Value="False" />
  49. <Setter Property="FontSize" Value="13" />
  50. <Setter Property="Foreground" Value="#ddd" />
  51. <Setter Property="Template">
  52. <Setter.Value>
  53. <ControlTemplate TargetType="{x:Type RadioButton}">
  54. <Grid SnapsToDevicePixels="True">
  55. <pry:BeveledButton
  56. x:Name="bb"
  57. FillColor="#4B8EC4"
  58. IsParallelogram="True"
  59. StrokeThickness="1" />
  60. <ContentPresenter
  61. x:Name="contentPresenter"
  62. Margin="0,0,10,0"
  63. HorizontalAlignment="Center"
  64. VerticalAlignment="Center"
  65. Content="{TemplateBinding Content}"
  66. ContentStringFormat="{TemplateBinding ContentStringFormat}"
  67. ContentTemplate="{TemplateBinding ContentTemplate}"
  68. Focusable="False"
  69. RecognizesAccessKey="True"
  70. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  71. </Grid>
  72. <ControlTemplate.Triggers>
  73. <Trigger Property="IsChecked" Value="False">
  74. <Setter TargetName="bb" Property="FillColor" Value="#55007acc" />
  75. </Trigger>
  76. </ControlTemplate.Triggers>
  77. </ControlTemplate>
  78. </Setter.Value>
  79. </Setter>
  80. </Style>
  81. <!--#endregion-->
  82. <!--#region 长方形按钮-->
  83. <Style x:Key="RectangleRadioButtonStyle" TargetType="{x:Type RadioButton}">
  84. <Setter Property="FontFamily" Value="楷体" />
  85. <Setter Property="Width" Value="100" />
  86. <Setter Property="IsChecked" Value="False" />
  87. <Setter Property="FontSize" Value="16" />
  88. <Setter Property="Foreground" Value="#ff2AB2E7" />
  89. <Setter Property="Template">
  90. <Setter.Value>
  91. <ControlTemplate TargetType="{x:Type RadioButton}">
  92. <Grid SnapsToDevicePixels="True">
  93. <Border
  94. x:Name="bb"
  95. BorderBrush="#4B8EC4"
  96. BorderThickness="0,0,0,2" />
  97. <ContentPresenter
  98. x:Name="contentPresenter"
  99. Margin="10"
  100. HorizontalAlignment="Center"
  101. VerticalAlignment="Center"
  102. Content="{TemplateBinding Content}"
  103. ContentStringFormat="{TemplateBinding ContentStringFormat}"
  104. ContentTemplate="{TemplateBinding ContentTemplate}"
  105. Focusable="False"
  106. RecognizesAccessKey="True"
  107. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  108. </Grid>
  109. <ControlTemplate.Triggers>
  110. <Trigger Property="IsChecked" Value="True">
  111. <!--<Setter TargetName="bb" Property="Background" Value="#4B8EC4" />-->
  112. <Setter TargetName="bb" Property="Visibility" Value="Visible" />
  113. </Trigger>
  114. <Trigger Property="IsChecked" Value="False">
  115. <Setter TargetName="bb" Property="Visibility" Value="Hidden" />
  116. <!--<Setter TargetName="bb" Property="Background" Value="Transparent" />-->
  117. </Trigger>
  118. </ControlTemplate.Triggers>
  119. </ControlTemplate>
  120. </Setter.Value>
  121. </Setter>
  122. </Style>
  123. <!--#endregion-->
  124. <!--#region 长方形左侧按钮-->
  125. <Style x:Key="RectangleLeftRadioButtonStyle" TargetType="{x:Type RadioButton}">
  126. <Setter Property="FontFamily" Value="楷体" />
  127. <Setter Property="Width" Value="100" />
  128. <Setter Property="IsChecked" Value="False" />
  129. <Setter Property="FontSize" Value="16" />
  130. <Setter Property="Foreground" Value="#ff2AB2E7" />
  131. <Setter Property="Template">
  132. <Setter.Value>
  133. <ControlTemplate TargetType="{x:Type RadioButton}">
  134. <Grid SnapsToDevicePixels="True">
  135. <Border x:Name="bb">
  136. <Border.Background>
  137. <ImageBrush ImageSource="../Image/leftImageSub.png" />
  138. </Border.Background>
  139. </Border>
  140. <ContentPresenter
  141. x:Name="contentPresenter"
  142. Margin="10"
  143. HorizontalAlignment="Center"
  144. VerticalAlignment="Center"
  145. Content="{TemplateBinding Content}"
  146. ContentStringFormat="{TemplateBinding ContentStringFormat}"
  147. ContentTemplate="{TemplateBinding ContentTemplate}"
  148. Focusable="False"
  149. RecognizesAccessKey="True"
  150. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  151. </Grid>
  152. <ControlTemplate.Triggers>
  153. <Trigger Property="IsChecked" Value="True">
  154. <Setter TargetName="bb" Property="Visibility" Value="Visible" />
  155. <!--<Setter TargetName="bb" Property="Background" Value="#4B8EC4" />-->
  156. </Trigger>
  157. <Trigger Property="IsChecked" Value="False">
  158. <Setter TargetName="bb" Property="Visibility" Value="Hidden" />
  159. <!--<Setter TargetName="bb" Property="Background" Value="Transparent" />-->
  160. </Trigger>
  161. </ControlTemplate.Triggers>
  162. </ControlTemplate>
  163. </Setter.Value>
  164. </Setter>
  165. </Style>
  166. <!--#endregion-->
  167. <!--#region 长方形左侧按钮-->
  168. <Style x:Key="MenuRadioButtonStyle" TargetType="{x:Type RadioButton}">
  169. <Setter Property="FontFamily" Value="楷体" />
  170. <Setter Property="Width" Value="130" />
  171. <Setter Property="IsChecked" Value="False" />
  172. <Setter Property="FontSize" Value="18" />
  173. <Setter Property="Foreground" Value="White" />
  174. <Setter Property="Template">
  175. <Setter.Value>
  176. <ControlTemplate TargetType="{x:Type RadioButton}">
  177. <Grid SnapsToDevicePixels="True">
  178. <Image x:Name="im" />
  179. <ContentPresenter
  180. x:Name="contentPresenter"
  181. Margin="10"
  182. HorizontalAlignment="Center"
  183. VerticalAlignment="Center"
  184. Content="{TemplateBinding Content}"
  185. ContentStringFormat="{TemplateBinding ContentStringFormat}"
  186. ContentTemplate="{TemplateBinding ContentTemplate}"
  187. Focusable="False"
  188. RecognizesAccessKey="True"
  189. SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" />
  190. </Grid>
  191. <ControlTemplate.Triggers>
  192. <Trigger Property="IsChecked" Value="True">
  193. <Setter TargetName="im" Property="Source" Value="../Image/窗体样式/Tab/Tab4_Select.png" />
  194. </Trigger>
  195. <Trigger Property="IsChecked" Value="False">
  196. <Setter TargetName="im" Property="Source" Value="../Image/窗体样式/Tab/Tab4_No.png" />
  197. </Trigger>
  198. </ControlTemplate.Triggers>
  199. </ControlTemplate>
  200. </Setter.Value>
  201. </Setter>
  202. </Style>
  203. <!--#endregion-->
  204. </ResourceDictionary>