Button.xaml 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701
  1. <ResourceDictionary
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:ctrl="http://OpenSEMI.Ctrlib.com/presentation"
  7. xmlns:controls="clr-namespace:OpenSEMI.Ctrlib.Controls"
  8. mc:Ignorable="d">
  9. <Style x:Key="ButtonFocusVisual">
  10. <Setter Property="Control.Template">
  11. <Setter.Value>
  12. <ControlTemplate>
  13. <Rectangle Margin="2" SnapsToDevicePixels="true" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2"/>
  14. </ControlTemplate>
  15. </Setter.Value>
  16. </Setter>
  17. </Style>
  18. <Style x:Key="Login_Btn" TargetType="{x:Type Button}">
  19. <Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
  20. <Setter Property="Background" Value="{DynamicResource Color_BG_Button}"/>
  21. <Setter Property="BorderBrush" Value="{DynamicResource Color_BD_Button}"/>
  22. <Setter Property="BorderThickness" Value="1"/>
  23. <Setter Property="FontFamily" Value="Arial"/>
  24. <Setter Property="FontSize" Value="17"/>
  25. <Setter Property="FontWeight" Value="Bold"/>
  26. <Setter Property="Foreground" Value="{DynamicResource Color_FG_Button}"/>
  27. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  28. <Setter Property="VerticalContentAlignment" Value="Center"/>
  29. <Setter Property="Padding" Value="1"/>
  30. <Setter Property="Template">
  31. <Setter.Value>
  32. <ControlTemplate TargetType="{x:Type Button}">
  33. <Border x:Name="border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="True">
  34. <Grid>
  35. <Border BorderThickness="1" BorderBrush="{DynamicResource Color_BD_Button_InnerGrow}">
  36. <Border.Effect>
  37. <BlurEffect/>
  38. </Border.Effect>
  39. </Border>
  40. <Border x:Name="Highlight" BorderThickness="1" Background="{DynamicResource Color_BG_Button_Highlight}" Opacity="0">
  41. <Border.Effect>
  42. <BlurEffect/>
  43. </Border.Effect>
  44. </Border>
  45. <TextBlock Text="{TemplateBinding Content}" Foreground="{TemplateBinding Foreground}" VerticalAlignment="Center" HorizontalAlignment="Center">
  46. <TextBlock.Effect>
  47. <DropShadowEffect BlurRadius="3" ShadowDepth="2" Color="#FF008A40"/>
  48. </TextBlock.Effect>
  49. </TextBlock>
  50. </Grid>
  51. </Border>
  52. <ControlTemplate.Triggers>
  53. <Trigger Property="IsMouseOver" Value="true">
  54. <Setter Property="Opacity" TargetName="Highlight" Value="0.5"/>
  55. </Trigger>
  56. <Trigger Property="IsPressed" Value="True">
  57. <Setter Property="Opacity" TargetName="Highlight" Value="0.5"/>
  58. </Trigger>
  59. <Trigger Property="IsEnabled" Value="false">
  60. <Setter Property="Foreground" Value="#ADADAD"/>
  61. </Trigger>
  62. </ControlTemplate.Triggers>
  63. </ControlTemplate>
  64. </Setter.Value>
  65. </Setter>
  66. </Style>
  67. <Style x:Key="SysBtnStyle" TargetType="{x:Type Button}">
  68. <Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
  69. <Setter Property="Background" Value="{DynamicResource Color_BG_LoginButton}"/>
  70. <Setter Property="BorderBrush" Value="{DynamicResource Color_BD_LoginButton}"/>
  71. <Setter Property="BorderThickness" Value="1"/>
  72. <Setter Property="FontFamily" Value="Arial"/>
  73. <Setter Property="FontWeight" Value="Bold"/>
  74. <Setter Property="FontSize" Value="14"/>
  75. <Setter Property="Foreground" Value="{DynamicResource Color_FG_Button_Window}"/>
  76. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  77. <Setter Property="VerticalContentAlignment" Value="Center"/>
  78. <Setter Property="Padding" Value="1"/>
  79. <Setter Property="Template">
  80. <Setter.Value>
  81. <ControlTemplate TargetType="{x:Type Button}">
  82. <Border x:Name="Bd" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="true" BorderBrush="{DynamicResource Color_BD_WindowButton}" Cursor="Hand" Background="{DynamicResource Color_BG_WindowButton}">
  83. <Grid>
  84. <Border BorderThickness="1" BorderBrush="{DynamicResource Color_BD_WindowButton_InnerGrow}">
  85. <Border.Effect>
  86. <BlurEffect/>
  87. </Border.Effect>
  88. </Border>
  89. <Border x:Name="Highlight" BorderThickness="1" Background="{DynamicResource Color_BG_WindowButton_Highlight}" Opacity="0">
  90. <Border.Effect>
  91. <BlurEffect/>
  92. </Border.Effect>
  93. </Border>
  94. <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Cursor="Hand">
  95. </ContentPresenter>
  96. </Grid>
  97. </Border>
  98. <ControlTemplate.Triggers>
  99. <Trigger Property="IsKeyboardFocused" Value="true"/>
  100. <Trigger Property="IsMouseOver" Value="true">
  101. <Setter Property="Opacity" TargetName="Highlight" Value="1"/>
  102. </Trigger>
  103. <Trigger Property="IsEnabled" Value="false">
  104. <Setter Property="Foreground" Value="#ADADAD"/>
  105. </Trigger>
  106. </ControlTemplate.Triggers>
  107. </ControlTemplate>
  108. </Setter.Value>
  109. </Setter>
  110. </Style>
  111. <Style x:Key="SysCloseBtnStyle" TargetType="{x:Type Button}">
  112. <Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
  113. <Setter Property="Background" Value="{DynamicResource Color_BG_LoginButton}"/>
  114. <Setter Property="BorderBrush" Value="{DynamicResource Color_BD_LoginButton}"/>
  115. <Setter Property="BorderThickness" Value="1"/>
  116. <Setter Property="FontFamily" Value="Arial"/>
  117. <Setter Property="FontWeight" Value="Bold"/>
  118. <Setter Property="FontSize" Value="14"/>
  119. <Setter Property="Foreground" Value="{DynamicResource Color_FG_Button_Window}"/>
  120. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  121. <Setter Property="VerticalContentAlignment" Value="Center"/>
  122. <Setter Property="Padding" Value="1"/>
  123. <Setter Property="Template">
  124. <Setter.Value>
  125. <ControlTemplate TargetType="{x:Type Button}">
  126. <Border x:Name="Bd" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="true" BorderBrush="{DynamicResource Color_BD_WindowButton}" Cursor="Hand" Background="{DynamicResource Color_BG_WindowButton}">
  127. <Grid>
  128. <Border BorderThickness="1" BorderBrush="{DynamicResource Color_BD_WindowButton_InnerGrow}">
  129. <Border.Effect>
  130. <BlurEffect/>
  131. </Border.Effect>
  132. </Border>
  133. <Border x:Name="Highlight" BorderThickness="1" Background="{DynamicResource Color_BG_WindowButton_Highlight}" Opacity="0">
  134. <Border.Effect>
  135. <BlurEffect/>
  136. </Border.Effect>
  137. </Border>
  138. <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Cursor="Hand">
  139. </ContentPresenter>
  140. </Grid>
  141. </Border>
  142. <ControlTemplate.Triggers>
  143. <Trigger Property="IsKeyboardFocused" Value="true"/>
  144. <Trigger Property="IsMouseOver" Value="true">
  145. <Setter Property="Opacity" TargetName="Highlight" Value="1"/>
  146. </Trigger>
  147. <Trigger Property="IsEnabled" Value="false">
  148. <Setter Property="Foreground" Value="#ADADAD"/>
  149. </Trigger>
  150. </ControlTemplate.Triggers>
  151. </ControlTemplate>
  152. </Setter.Value>
  153. </Setter>
  154. </Style>
  155. <RadialGradientBrush x:Key="highLight">
  156. <GradientStop Color="#FF64D7FF" Offset="1"></GradientStop>
  157. <GradientStop Color="White" Offset="0.2"></GradientStop>
  158. </RadialGradientBrush>
  159. <SolidColorBrush x:Key="OnOffButton_BD" Color="#FF004900"/>
  160. <RadialGradientBrush x:Key="OnOffButton_BG">
  161. <GradientStop Color="#FF003F0F" Offset="0.25"/>
  162. <GradientStop Color="#FF067421" Offset="1"/>
  163. </RadialGradientBrush>
  164. <RadialGradientBrush x:Key="OnOffButton_BG_Highlight">
  165. <GradientStop Color="#FF89FFA6" Offset="0"/>
  166. <GradientStop Color="#FF00FF3F" Offset="1"/>
  167. </RadialGradientBrush>
  168. <RadialGradientBrush x:Key="OnOffButton_BG_Unable">
  169. <GradientStop Color="#FF939393" Offset="0"/>
  170. <GradientStop Color="#FFCACACA" Offset="1"/>
  171. </RadialGradientBrush>
  172. <Style x:Key="Lamp-Button" TargetType="{x:Type controls:SwitchButton}">
  173. <Setter Property="Width" Value="16"/>
  174. <Setter Property="Height" Value="16"/>
  175. <Setter Property="Template">
  176. <Setter.Value>
  177. <ControlTemplate TargetType="{x:Type controls:SwitchButton}">
  178. <Grid>
  179. <Ellipse x:Name="BG" Stroke="{DynamicResource OnOffButton_BD}" StrokeThickness="1" Fill="{DynamicResource OnOffButton_BG}"/>
  180. <Ellipse x:Name="Highlight" Margin="1" Visibility="Collapsed" Fill="{DynamicResource OnOffButton_BG_Highlight}">
  181. <Ellipse.Effect>
  182. <BlurEffect Radius="5"/>
  183. </Ellipse.Effect>
  184. </Ellipse>
  185. <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RecognizesAccessKey="True" Content=""/>
  186. </Grid>
  187. <ControlTemplate.Triggers>
  188. <Trigger Property="ON" Value="True">
  189. <Setter Property="Visibility" TargetName="Highlight" Value="Visible"/>
  190. </Trigger>
  191. <Trigger Property="ON" Value="False">
  192. <Setter Property="Visibility" TargetName="Highlight" Value="Collapsed"/>
  193. </Trigger>
  194. <Trigger Property="IsDefaulted" Value="True"/>
  195. <Trigger Property="IsEnabled" Value="False">
  196. <Setter Property="Fill" TargetName="BG" Value="{DynamicResource OnOffButton_BG_Unable}"/>
  197. </Trigger>
  198. </ControlTemplate.Triggers>
  199. </ControlTemplate>
  200. </Setter.Value>
  201. </Setter>
  202. </Style>
  203. <LinearGradientBrush x:Key="OperatioNButton_BG_Outer" EndPoint="0.238,0.239" StartPoint="0.85,0.864">
  204. <GradientStop Color="#FF3D3D3D" Offset="0"/>
  205. <GradientStop Color="White" Offset="1"/>
  206. </LinearGradientBrush>
  207. <LinearGradientBrush x:Key="OperatioNButton_BD_Outer" EndPoint="0.104,0.195" StartPoint="1.192,1.066">
  208. <GradientStop Color="#FF5C5C5C" Offset="0"/>
  209. <GradientStop Color="#FFE0E0E0" Offset="1"/>
  210. </LinearGradientBrush>
  211. <LinearGradientBrush x:Key="OperatioNButton_BD_Inner" EndPoint="1.141,1.123" StartPoint="0.155,0.138">
  212. <GradientStop Color="Black" Offset="0"/>
  213. <GradientStop Color="White" Offset="1"/>
  214. </LinearGradientBrush>
  215. <RadialGradientBrush x:Key="OperatioNButton_BG" GradientOrigin="0.234,0.241">
  216. <GradientStop Color="#FF004911" Offset="0"/>
  217. <GradientStop Color="#FF001D07" Offset="1"/>
  218. </RadialGradientBrush>
  219. <RadialGradientBrush x:Key="OperatioNButton_BG_Highlight" GradientOrigin="0.234,0.241">
  220. <GradientStop Color="#FF9EFFB6" Offset="0"/>
  221. <GradientStop Color="#FF00D633" Offset="1"/>
  222. </RadialGradientBrush>
  223. <LinearGradientBrush x:Key="OperatioNButton_BG_Outer_Unable" EndPoint="0.104,0.195" StartPoint="1.192,1.066">
  224. <GradientStop Color="Black" Offset="0"/>
  225. <GradientStop Color="#FFD0D0D0" Offset="1"/>
  226. </LinearGradientBrush>
  227. <SolidColorBrush x:Key="OperatioNButton_BD_Outer_Unable" Color="#FF939393"/>
  228. <LinearGradientBrush x:Key="OperatioNButton_BD_Inner_Unable" EndPoint="1.141,1.123" StartPoint="0.155,0.138">
  229. <GradientStop Color="Black" Offset="0"/>
  230. <GradientStop Color="#FFD0D0D0" Offset="1"/>
  231. </LinearGradientBrush>
  232. <RadialGradientBrush x:Key="OperatioNButton_BG_Unable" GradientOrigin="0.234,0.241">
  233. <GradientStop Color="#FF858585" Offset="0"/>
  234. <GradientStop Color="#FF4E4E4E" Offset="1"/>
  235. </RadialGradientBrush>
  236. <Style x:Key="OperationButton" TargetType="{x:Type controls:SwitchButton}">
  237. <Setter Property="Width" Value="18"/>
  238. <Setter Property="Height" Value="18"/>
  239. <Setter Property="Template">
  240. <Setter.Value>
  241. <ControlTemplate TargetType="{x:Type controls:SwitchButton}">
  242. <Grid>
  243. <Ellipse x:Name="BG" Fill="{DynamicResource OperatioNButton_BG_Outer}" Stroke="{DynamicResource OperatioNButton_BD_Outer}" StrokeThickness="0.5"/>
  244. <Ellipse x:Name="Inner_BG" Margin="2" Fill="{DynamicResource OperatioNButton_BD_Inner}"/>
  245. <Ellipse x:Name="Close" Margin="3" Cursor="Hand" Fill="{DynamicResource OperatioNButton_BG}" />
  246. <Ellipse x:Name="Open" Margin="3" Cursor="Hand" Visibility="Collapsed" Fill="{DynamicResource OperatioNButton_BG_Highlight}" >
  247. <Ellipse.Effect>
  248. <DropShadowEffect ShadowDepth="0" Color="White" BlurRadius="3"/>
  249. </Ellipse.Effect>
  250. </Ellipse>
  251. <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" RecognizesAccessKey="True" Content=""/>
  252. </Grid>
  253. <ControlTemplate.Triggers>
  254. <Trigger Property="ON" Value="True">
  255. <Setter Property="Visibility" TargetName="Open" Value="Visible"/>
  256. </Trigger>
  257. <Trigger Property="ON" Value="False">
  258. <Setter Property="Visibility" TargetName="Open" Value="Collapsed"/>
  259. </Trigger>
  260. <Trigger Property="IsDefaulted" Value="True"/>
  261. <Trigger Property="IsEnabled" Value="False">
  262. <Setter Property="Fill" TargetName="BG" Value="{DynamicResource OperatioNButton_BG_Outer_Unable}"/>
  263. <Setter Property="Stroke" TargetName="BG" Value="{DynamicResource OperatioNButton_BD_Outer_Unable}"/>
  264. <Setter Property="Fill" TargetName="Inner_BG" Value="{DynamicResource OperatioNButton_BD_Inner_Unable}"/>
  265. <Setter Property="Fill" TargetName="Close" Value="{DynamicResource OperatioNButton_BG_Unable}"/>
  266. </Trigger>
  267. </ControlTemplate.Triggers>
  268. </ControlTemplate>
  269. </Setter.Value>
  270. </Setter>
  271. </Style>
  272. <!-- Normal Button style -->
  273. <LinearGradientBrush x:Key="Button_BG" EndPoint="0.5,1" StartPoint="0.5,0">
  274. <GradientStop Color="#FF49ACF9" Offset="0"/>
  275. <GradientStop Color="#FF49ACF9" Offset="1"/>
  276. <GradientStop Color="#FF00518F" Offset="0.5"/>
  277. <GradientStop Color="#FF1977C0" Offset="0.25"/>
  278. <GradientStop Color="#FF1977C0" Offset="0.75"/>
  279. </LinearGradientBrush>
  280. <SolidColorBrush x:Key="Button_BD" Color="#FF293C4B"/>
  281. <LinearGradientBrush x:Key="Button_BG_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
  282. <GradientStop Color="#FF5BC5E7" Offset="0"/>
  283. <GradientStop Color="#FF5BC5E7" Offset="1"/>
  284. <GradientStop Color="#FF0480C0" Offset="0.5"/>
  285. <GradientStop Color="#FF2B9FD1" Offset="0.25"/>
  286. <GradientStop Color="#FF2B9FD1" Offset="0.75"/>
  287. </LinearGradientBrush>
  288. <LinearGradientBrush x:Key="Button_BG_Press" EndPoint="0.5,1" StartPoint="0.5,0">
  289. <GradientStop Color="#FFA4E9FF"/>
  290. <GradientStop Color="#FFA4E9FF" Offset="1"/>
  291. <GradientStop Color="#FF3D99C8" Offset="0.5"/>
  292. <GradientStop Color="#FF59B8E2" Offset="0.25"/>
  293. <GradientStop Color="#FF59B8E2" Offset="0.75"/>
  294. </LinearGradientBrush>
  295. <SolidColorBrush x:Key="Button_BG_Unable" Color="#FFD2D2D2"/>
  296. <SolidColorBrush x:Key="Button_BD_Unable" Color="#FF9D9D9D"/>
  297. <LinearGradientBrush x:Key="Button_InnerBG_Unable" EndPoint="0.5,1" StartPoint="0.5,0">
  298. <GradientStop Color="#FFD2D2D2" Offset="0"/>
  299. <GradientStop Color="#FFB2B2B2" Offset="1"/>
  300. </LinearGradientBrush>
  301. <Style TargetType="{x:Type Button}">
  302. <Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
  303. <Setter Property="Background" Value="{StaticResource Button_BG}"/>
  304. <Setter Property="BorderBrush" Value="{StaticResource Button_BD}"/>
  305. <Setter Property="BorderThickness" Value="1"/>
  306. <Setter Property="FontFamily" Value="Arial"/>
  307. <Setter Property="FontSize" Value="14"/>
  308. <Setter Property="Foreground" Value="{DynamicResource FG_White}"/>
  309. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  310. <Setter Property="VerticalContentAlignment" Value="Center"/>
  311. <Setter Property="Padding" Value="6,3"/>
  312. <Setter Property="MinWidth" Value="40"/>
  313. <Setter Property="MinHeight" Value="20"/>
  314. <Setter Property="SnapsToDevicePixels" Value="True"/>
  315. <Setter Property="Border.CornerRadius" Value="4"/>
  316. <Setter Property="Template">
  317. <Setter.Value>
  318. <ControlTemplate TargetType="{x:Type Button}">
  319. <Border x:Name="BG" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" CornerRadius="{TemplateBinding Border.CornerRadius}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" Cursor="Hand">
  320. <Border.Effect>
  321. <DropShadowEffect ShadowDepth="0" Color="#FF6A8CAD" BlurRadius="8"/>
  322. </Border.Effect>
  323. <ContentPresenter x:Name="contentpresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Cursor="Hand">
  324. </ContentPresenter>
  325. </Border>
  326. <ControlTemplate.Triggers>
  327. <Trigger Property="IsMouseOver" Value="True">
  328. <Setter TargetName="BG" Property="Background" Value="{StaticResource Button_BG_MouseOver}"/>
  329. </Trigger>
  330. <Trigger Property="IsPressed" Value="True">
  331. <Setter TargetName="BG" Property="Background" Value="{StaticResource Button_BG_Press}"/>
  332. <Setter TargetName="BG" Property="Margin" Value="1"/>
  333. <Setter Property="FontSize" Value="13.6"/>
  334. </Trigger>
  335. <Trigger Property="IsEnabled" Value="False">
  336. <Setter TargetName="BG" Property="Background" Value="{StaticResource Button_BG_Unable}"/>
  337. <Setter TargetName="BG" Property="BorderBrush" Value="{StaticResource Button_BD_Unable}"/>
  338. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
  339. <Setter Property="Effect" TargetName="contentpresenter">
  340. <Setter.Value>
  341. <DropShadowEffect BlurRadius="0" Color="White" Direction="135" Opacity="0" ShadowDepth="1"/>
  342. </Setter.Value>
  343. </Setter>
  344. </Trigger>
  345. </ControlTemplate.Triggers>
  346. </ControlTemplate>
  347. </Setter.Value>
  348. </Setter>
  349. </Style>
  350. <Style x:Key="Color_Button" TargetType="{x:Type Button}">
  351. <Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
  352. <Setter Property="Background" Value="Black"/>
  353. <Setter Property="BorderBrush" Value="{StaticResource Button_BD}"/>
  354. <Setter Property="BorderThickness" Value="0"/>
  355. <Setter Property="FontFamily" Value="Arial"/>
  356. <Setter Property="FontSize" Value="12"/>
  357. <Setter Property="Foreground" Value="{DynamicResource FG_Black}"/>
  358. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  359. <Setter Property="VerticalContentAlignment" Value="Center"/>
  360. <Setter Property="Padding" Value="1"/>
  361. <Setter Property="SnapsToDevicePixels" Value="True"/>
  362. <Setter Property="Border.CornerRadius" Value="0"/>
  363. <Setter Property="Template">
  364. <Setter.Value>
  365. <ControlTemplate TargetType="{x:Type Button}">
  366. <Grid>
  367. <Rectangle Fill="Gray"/>
  368. <Border x:Name="BG" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" CornerRadius="{TemplateBinding Border.CornerRadius}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" Cursor="Hand">
  369. <Grid>
  370. <Border x:Name="Inner_BG" CornerRadius="{TemplateBinding Border.CornerRadius}" Background="White" Opacity="0"/>
  371. <ContentPresenter x:Name="contentpresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Cursor="Hand">
  372. <ContentPresenter.Effect>
  373. <DropShadowEffect BlurRadius="0" ShadowDepth="1" Color="White" Direction="135"/>
  374. </ContentPresenter.Effect>
  375. </ContentPresenter>
  376. </Grid>
  377. </Border>
  378. </Grid>
  379. <ControlTemplate.Triggers>
  380. <Trigger Property="IsMouseOver" Value="True">
  381. <Setter TargetName="Inner_BG" Property="Opacity" Value="0.4"/>
  382. </Trigger>
  383. <Trigger Property="IsPressed" Value="True">
  384. <Setter TargetName="Inner_BG" Property="Opacity" Value="0.4"/>
  385. </Trigger>
  386. <Trigger Property="IsEnabled" Value="False">
  387. <Setter TargetName="BG" Property="Background" Value="{StaticResource Button_BG_Unable}"/>
  388. <Setter TargetName="BG" Property="BorderBrush" Value="{StaticResource Button_BD_Unable}"/>
  389. <Setter TargetName="Inner_BG" Property="Background" Value="{StaticResource Button_InnerBG_Unable}"/>
  390. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
  391. <Setter Property="Effect" TargetName="contentpresenter">
  392. <Setter.Value>
  393. <DropShadowEffect BlurRadius="0" Color="White" Direction="135" Opacity="0" ShadowDepth="1"/>
  394. </Setter.Value>
  395. </Setter>
  396. </Trigger>
  397. </ControlTemplate.Triggers>
  398. </ControlTemplate>
  399. </Setter.Value>
  400. </Setter>
  401. </Style>
  402. <!-- Top Button -->
  403. <SolidColorBrush x:Key="TopButton_BD" Color="#FF9FD8F3"/>
  404. <LinearGradientBrush x:Key="TopButton_BG" EndPoint="0.5,1" StartPoint="0.5,0">
  405. <GradientStop Color="#FF5BC5E7" Offset="0"/>
  406. <GradientStop Color="#FF5BC5E7" Offset="1"/>
  407. <GradientStop Color="#FF0480C0" Offset="0.5"/>
  408. <GradientStop Color="#FF2B9FD1" Offset="0.25"/>
  409. <GradientStop Color="#FF2B9FD1" Offset="0.75"/>
  410. </LinearGradientBrush>
  411. <LinearGradientBrush x:Key="TopButton_InnerBG" EndPoint="0.5,1" StartPoint="0.5,0">
  412. <GradientStop Color="#00D1DEED" Offset="0"/>
  413. <GradientStop Color="#008EABD0" Offset="1"/>
  414. </LinearGradientBrush>
  415. <LinearGradientBrush x:Key="TopButton_BG_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
  416. <GradientStop Color="#FFB0E0EF" Offset="0"/>
  417. <GradientStop Color="#FFB0E0EF" Offset="1"/>
  418. <GradientStop Color="#FF64A2C2" Offset="0.5"/>
  419. <GradientStop Color="#FF82C8E5" Offset="0.25"/>
  420. <GradientStop Color="#FF82C8E5" Offset="0.75"/>
  421. </LinearGradientBrush>
  422. <LinearGradientBrush x:Key="TopButton_InnerBG_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
  423. <GradientStop Color="#00D1E7ED" Offset="0"/>
  424. <GradientStop Color="#0043BFE9" Offset="1"/>
  425. </LinearGradientBrush>
  426. <SolidColorBrush x:Key="TopButton_BD_Highlight" Color="White"/>
  427. <LinearGradientBrush x:Key="TopButton_BG_Press" EndPoint="0.5,1" StartPoint="0.5,0">
  428. <GradientStop Color="#FFB0E0EF" Offset="0"/>
  429. <GradientStop Color="#FFB0E0EF" Offset="1"/>
  430. <GradientStop Color="#FF64A2C2" Offset="0.5"/>
  431. <GradientStop Color="#FF82C8E5" Offset="0.25"/>
  432. <GradientStop Color="#FF82C8E5" Offset="0.75"/>
  433. </LinearGradientBrush>
  434. <LinearGradientBrush x:Key="TopButton_InnerBG_Press" EndPoint="0.5,1" StartPoint="0.5,0">
  435. <GradientStop Color="#00D8E7F5" Offset="0"/>
  436. <GradientStop Color="#00A3C7E9" Offset="1"/>
  437. </LinearGradientBrush>
  438. <SolidColorBrush x:Key="FG_Button_Unable" Color="#FFEBEBEB"/>
  439. <LinearGradientBrush x:Key="TopButton_BG_Unable" EndPoint="0.5,1" StartPoint="0.5,0">
  440. <GradientStop Color="#FFE4E4E4" Offset="0"/>
  441. <GradientStop Color="#FFE4E4E4" Offset="1"/>
  442. <GradientStop Color="#FFB2B2B2" Offset="0.5"/>
  443. <GradientStop Color="#FFC8C8C8" Offset="0.25"/>
  444. <GradientStop Color="#FFC8C8C8" Offset="0.75"/>
  445. </LinearGradientBrush>
  446. <SolidColorBrush x:Key="TopButton_BD_Unable" Color="WhiteSmoke"/>
  447. <LinearGradientBrush x:Key="TopButton_InnerBG_Unable" EndPoint="0.5,1" StartPoint="0.5,0">
  448. <GradientStop Color="#00D2D2D2" Offset="0"/>
  449. <GradientStop Color="#00B2B2B2" Offset="1"/>
  450. </LinearGradientBrush>
  451. <SolidColorBrush x:Key="TopButton_Shadow" Color="#FFDAF6FF"/>
  452. <LinearGradientBrush x:Key="TopButton_BG_Highlight" EndPoint="0.5,1" StartPoint="0.5,0">
  453. <GradientStop Color="#FFB0E0EF" Offset="0"/>
  454. <GradientStop Color="#FFB0E0EF" Offset="1"/>
  455. <GradientStop Color="#FF64A2C2" Offset="0.5"/>
  456. <GradientStop Color="#FF82C8E5" Offset="0.25"/>
  457. <GradientStop Color="#FF82C8E5" Offset="0.75"/>
  458. </LinearGradientBrush>
  459. <Style x:Key="TopButton" TargetType="{x:Type Button}">
  460. <Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
  461. <Setter Property="Background" Value="{StaticResource TopButton_BG}"/>
  462. <Setter Property="BorderBrush" Value="{StaticResource TopButton_BD}"/>
  463. <Setter Property="BorderThickness" Value="1"/>
  464. <Setter Property="FontFamily" Value="Arial"/>
  465. <Setter Property="FontSize" Value="16"/>
  466. <Setter Property="FontWeight" Value="Bold"/>
  467. <Setter Property="Foreground" Value="{DynamicResource FG_White}"/>
  468. <Setter Property="Border.CornerRadius" Value="5"/>
  469. <Setter Property="SnapsToDevicePixels" Value="True"/>
  470. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  471. <Setter Property="VerticalContentAlignment" Value="Center"/>
  472. <Setter Property="Padding" Value="1"/>
  473. <Setter Property="Template">
  474. <Setter.Value>
  475. <ControlTemplate TargetType="{x:Type Button}">
  476. <Border x:Name="border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{TemplateBinding Border.CornerRadius}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Cursor="Hand">
  477. <Border.Effect>
  478. <DropShadowEffect ShadowDepth="0" Color="#FFDAF6FF"/>
  479. </Border.Effect>
  480. <ContentPresenter x:Name="contentpresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Cursor="Hand">
  481. <ContentPresenter.Effect>
  482. <DropShadowEffect BlurRadius="1" ShadowDepth="3" Opacity="0"/>
  483. </ContentPresenter.Effect>
  484. </ContentPresenter>
  485. </Border>
  486. <ControlTemplate.Triggers>
  487. <Trigger Property="IsMouseOver" Value="true">
  488. <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource TopButton_BD_Highlight}"/>
  489. <Setter Property="Background" TargetName="border" Value="{StaticResource TopButton_BG_Highlight}"/>
  490. <Setter Property="Effect" TargetName="contentpresenter">
  491. <Setter.Value>
  492. <DropShadowEffect BlurRadius="1" Opacity="1" ShadowDepth="3"/>
  493. </Setter.Value>
  494. </Setter>
  495. </Trigger>
  496. <Trigger Property="IsPressed" Value="True">
  497. <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource TopButton_BD_Highlight}"/>
  498. <Setter Property="Background" TargetName="border" Value="{StaticResource TopButton_BG_Highlight}"/>
  499. <Setter Property="Effect" TargetName="contentpresenter">
  500. <Setter.Value>
  501. <DropShadowEffect BlurRadius="1" Opacity="1" ShadowDepth="2"/>
  502. </Setter.Value>
  503. </Setter>
  504. <Setter Property="FontSize" Value="15"/>
  505. </Trigger>
  506. <Trigger Property="IsEnabled" Value="false">
  507. <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource TopButton_BD_Unable}"/>
  508. <Setter Property="Background" TargetName="border" Value="{StaticResource TopButton_BG_Unable}"/>
  509. <Setter Property="Foreground" Value="{StaticResource FG_Button_Unable}"/>
  510. </Trigger>
  511. </ControlTemplate.Triggers>
  512. </ControlTemplate>
  513. </Setter.Value>
  514. </Setter>
  515. </Style>
  516. <!-- Logout Button -->
  517. <SolidColorBrush x:Key="TopMenuButton_BD" Color="#FFBBD8E5"/>
  518. <LinearGradientBrush x:Key="TopMenuButton_BG" EndPoint="0.5,1" StartPoint="0.5,0">
  519. <GradientStop Color="#FF5E5E5E" Offset="0"/>
  520. <GradientStop Color="#FF474B4E" Offset="1"/>
  521. <GradientStop Color="#FF242424" Offset="0.5"/>
  522. <GradientStop Color="#FF1F1F1F" Offset="0.75"/>
  523. </LinearGradientBrush>
  524. <LinearGradientBrush x:Key="TopMenuButton_BG_Highlight" EndPoint="0.5,1" StartPoint="0.5,0">
  525. <GradientStop Color="#FF0076B2" Offset="0"/>
  526. <GradientStop Color="#FF0076B2" Offset="1"/>
  527. <GradientStop Color="#FF00466A" Offset="0.5"/>
  528. <GradientStop Color="#FF00466A" Offset="0.75"/>
  529. </LinearGradientBrush>
  530. <SolidColorBrush x:Key="TopMenuButton_BD_Highlight" Color="#FFF0FAFF"/>
  531. <LinearGradientBrush x:Key="TopMenuButton_BG_Unable" EndPoint="0.5,1" StartPoint="0.5,0">
  532. <GradientStop Color="#FFAFAFAF" Offset="0"/>
  533. <GradientStop Color="#FFAFAFAF" Offset="1"/>
  534. <GradientStop Color="#FF6C6C6C" Offset="0.5"/>
  535. <GradientStop Color="#FF7A7A7A" Offset="0.25"/>
  536. <GradientStop Color="#FF7A7A7A" Offset="0.75"/>
  537. </LinearGradientBrush>
  538. <SolidColorBrush x:Key="TopMenuButton_BD_Unable" Color="#FFB6B6B6"/>
  539. <LinearGradientBrush x:Key="LogoutBtn_InnerBG_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
  540. <GradientStop Color="#FF75D5ED" Offset="0"/>
  541. <GradientStop Color="#FF03B5E2" Offset="1"/>
  542. <GradientStop Color="#FF45C8E9" Offset="0.49"/>
  543. <GradientStop Color="#FF00A0C8" Offset="0.5"/>
  544. </LinearGradientBrush>
  545. <SolidColorBrush x:Key="LogoutBtn_BG_MouseOver" Color="#FF005C8D"/>
  546. <SolidColorBrush x:Key="LogoutBtn_BD" Color="#FF9FBADE"/>
  547. <LinearGradientBrush x:Key="LogoutBtn_InnerBG_Press" EndPoint="0.5,1" StartPoint="0.5,0">
  548. <GradientStop Color="#FFBCE5EF" Offset="0"/>
  549. <GradientStop Color="#FF02C5F5" Offset="1"/>
  550. <GradientStop Color="#FF73D5ED" Offset="0.49"/>
  551. <GradientStop Color="#FF02C5F5" Offset="0.5"/>
  552. </LinearGradientBrush>
  553. <SolidColorBrush x:Key="LogoutBtn_BG_Press" Color="#FF02A6D0"/>
  554. <LinearGradientBrush x:Key="LogoutBtn_InnerBG" EndPoint="0.5,1" StartPoint="0.5,0">
  555. <GradientStop Color="#FF7EA5CD" Offset="0"/>
  556. <GradientStop Color="#FF305F9D" Offset="1"/>
  557. <GradientStop Color="#FF4D83B8" Offset="0.495"/>
  558. <GradientStop Color="#FF27549D" Offset="0.5"/>
  559. </LinearGradientBrush>
  560. <SolidColorBrush x:Key="LogoutBtn_BG" Color="#FF2C4566"/>
  561. <SolidColorBrush x:Key="LogoutBtn_Shadow" Color="#FF0C1F39"/>
  562. <Style x:Key="Logout_Button" TargetType="{x:Type Button}">
  563. <Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
  564. <Setter Property="Background" Value="{StaticResource TopMenuButton_BG}"/>
  565. <Setter Property="BorderBrush" Value="{StaticResource TopMenuButton_BD}"/>
  566. <Setter Property="BorderThickness" Value="1"/>
  567. <Setter Property="FontFamily" Value="Arial"/>
  568. <Setter Property="FontSize" Value="16"/>
  569. <Setter Property="FontWeight" Value="Bold"/>
  570. <Setter Property="Foreground" Value="{DynamicResource FG_White}"/>
  571. <Setter Property="Border.CornerRadius" Value="5"/>
  572. <Setter Property="SnapsToDevicePixels" Value="True"/>
  573. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  574. <Setter Property="VerticalContentAlignment" Value="Center"/>
  575. <Setter Property="Padding" Value="1"/>
  576. <Setter Property="Template">
  577. <Setter.Value>
  578. <ControlTemplate TargetType="{x:Type Button}">
  579. <Border x:Name="border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" CornerRadius="{TemplateBinding Border.CornerRadius}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" Cursor="Hand">
  580. <Border.Effect>
  581. <DropShadowEffect ShadowDepth="0" Color="#FFDAF6FF"/>
  582. </Border.Effect>
  583. <ContentPresenter x:Name="contentpresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Cursor="Hand">
  584. <ContentPresenter.Effect>
  585. <DropShadowEffect BlurRadius="1" ShadowDepth="3" Opacity="0"/>
  586. </ContentPresenter.Effect>
  587. </ContentPresenter>
  588. </Border>
  589. <ControlTemplate.Triggers>
  590. <Trigger Property="IsMouseOver" Value="true">
  591. <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource TopMenuButton_BD_Highlight}"/>
  592. <Setter Property="Background" TargetName="border" Value="{StaticResource TopMenuButton_BG_Highlight}"/>
  593. <Setter Property="Effect" TargetName="contentpresenter">
  594. <Setter.Value>
  595. <DropShadowEffect BlurRadius="1" Opacity="1" ShadowDepth="3"/>
  596. </Setter.Value>
  597. </Setter>
  598. </Trigger>
  599. <Trigger Property="IsPressed" Value="True">
  600. <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource TopMenuButton_BD_Highlight}"/>
  601. <Setter Property="Background" TargetName="border" Value="{StaticResource TopMenuButton_BG_Highlight}"/>
  602. <Setter Property="Effect" TargetName="contentpresenter">
  603. <Setter.Value>
  604. <DropShadowEffect BlurRadius="1" Opacity="1" ShadowDepth="2"/>
  605. </Setter.Value>
  606. </Setter>
  607. <Setter Property="FontSize" Value="15"/>
  608. </Trigger>
  609. <Trigger Property="IsEnabled" Value="false">
  610. <Setter Property="BorderBrush" TargetName="border" Value="{StaticResource TopMenuButton_BD_Unable}"/>
  611. <Setter Property="Background" TargetName="border" Value="{StaticResource TopMenuButton_BG_Unable}"/>
  612. <Setter Property="Foreground" Value="{StaticResource FG_Button_Unable}"/>
  613. </Trigger>
  614. </ControlTemplate.Triggers>
  615. </ControlTemplate>
  616. </Setter.Value>
  617. </Setter>
  618. </Style>
  619. <!-- Login Button -->
  620. <SolidColorBrush x:Key="Login_Btn_BD_Highlight" Color="#FF84ADEB"/>
  621. <SolidColorBrush x:Key="Login_Btn_BD_Shadow" Color="#FF1E385B"/>
  622. <SolidColorBrush x:Key="Login_Btn_BG" Color="#FF4781D3"/>
  623. <SolidColorBrush x:Key="Login_Btn_BD_MouseOver_Highlight" Color="#FFA1E7FF"/>
  624. <SolidColorBrush x:Key="Login_Btn_BG_MouseOver" Color="DeepSkyBlue"/>
  625. <SolidColorBrush x:Key="Login_Btn_BD_MouseOver_Shadow" Color="#FF005B7A"/>
  626. <SolidColorBrush x:Key="Login_Btn_BG_Press" Color="#FF85E0FF"/>
  627. <SolidColorBrush x:Key="Button_BD_Shadow_Unable" Color="#FF7A7A7A"/>
  628. <Style x:Key="Login_Button" TargetType="{x:Type Button}">
  629. <Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
  630. <Setter Property="BorderThickness" Value="1"/>
  631. <Setter Property="FontFamily" Value="Arial"/>
  632. <Setter Property="FontSize" Value="24"/>
  633. <Setter Property="FontWeight" Value="Bold"/>
  634. <Setter Property="Foreground" Value="{DynamicResource FG_White}"/>
  635. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  636. <Setter Property="VerticalContentAlignment" Value="Center"/>
  637. <Setter Property="Padding" Value="1"/>
  638. <Setter Property="SnapsToDevicePixels" Value="True"/>
  639. <Setter Property="Border.CornerRadius" Value="5"/>
  640. <Setter Property="Template">
  641. <Setter.Value>
  642. <ControlTemplate TargetType="{x:Type Button}">
  643. <Border x:Name="BG" BorderThickness="2,2,0,0" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" CornerRadius="{TemplateBinding Border.CornerRadius}" BorderBrush="{StaticResource Login_Btn_BD_Highlight}" Background="{StaticResource Login_Btn_BG}" Cursor="Hand">
  644. <Border x:Name="Inner_BD" BorderThickness="0,0,2,2" CornerRadius="{TemplateBinding Border.CornerRadius}" BorderBrush="{StaticResource Login_Btn_BD_Shadow}">
  645. <ContentPresenter x:Name="contentpresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Cursor="Hand">
  646. <ContentPresenter.Effect>
  647. <DropShadowEffect BlurRadius="0" ShadowDepth="1.5" Direction="315"/>
  648. </ContentPresenter.Effect>
  649. </ContentPresenter>
  650. </Border>
  651. </Border>
  652. <ControlTemplate.Triggers>
  653. <Trigger Property="IsMouseOver" Value="True">
  654. <Setter TargetName="BG" Property="Background" Value="{StaticResource Login_Btn_BG_MouseOver}"/>
  655. <Setter TargetName="BG" Property="BorderBrush" Value="{StaticResource Login_Btn_BD_MouseOver_Highlight}"/>
  656. <Setter TargetName="Inner_BD" Property="BorderBrush" Value="{StaticResource Login_Btn_BD_MouseOver_Shadow}"/>
  657. </Trigger>
  658. <Trigger Property="IsPressed" Value="True">
  659. <Setter TargetName="BG" Property="Background" Value="{StaticResource Login_Btn_BG_Press}"/>
  660. </Trigger>
  661. <Trigger Property="IsEnabled" Value="False">
  662. <Setter TargetName="BG" Property="Background" Value="{StaticResource Button_BG_Unable}"/>
  663. <Setter TargetName="BG" Property="BorderBrush" Value="{StaticResource Button_BD_Unable}"/>
  664. <Setter TargetName="Inner_BD" Property="BorderBrush" Value="{StaticResource Button_BD_Shadow_Unable}"/>
  665. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
  666. <Setter Property="Effect" TargetName="contentpresenter">
  667. <Setter.Value>
  668. <DropShadowEffect BlurRadius="0" Color="White" Direction="315" Opacity="0" ShadowDepth="1"/>
  669. </Setter.Value>
  670. </Setter>
  671. </Trigger>
  672. </ControlTemplate.Triggers>
  673. </ControlTemplate>
  674. </Setter.Value>
  675. </Setter>
  676. </Style>
  677. </ResourceDictionary>