Button.xaml 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439
  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. mc:Ignorable="d">
  7. <Style x:Key="ButtonFocusVisual">
  8. <Setter Property="Control.Template">
  9. <Setter.Value>
  10. <ControlTemplate>
  11. <Rectangle Margin="2" SnapsToDevicePixels="true" Stroke="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2"/>
  12. </ControlTemplate>
  13. </Setter.Value>
  14. </Setter>
  15. </Style>
  16. <Style x:Key="Login_Btn" TargetType="{x:Type Button}">
  17. <Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
  18. <Setter Property="Background" Value="{DynamicResource Color_BG_Button}"/>
  19. <Setter Property="BorderBrush" Value="{DynamicResource Color_BD_Button}"/>
  20. <Setter Property="BorderThickness" Value="1"/>
  21. <Setter Property="FontFamily" Value="Arial"/>
  22. <Setter Property="FontSize" Value="17"/>
  23. <Setter Property="FontWeight" Value="Bold"/>
  24. <Setter Property="Foreground" Value="{DynamicResource Color_FG_Button}"/>
  25. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  26. <Setter Property="VerticalContentAlignment" Value="Center"/>
  27. <Setter Property="Padding" Value="1"/>
  28. <Setter Property="Template">
  29. <Setter.Value>
  30. <ControlTemplate TargetType="{x:Type Button}">
  31. <Border x:Name="border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="True">
  32. <Grid>
  33. <Border BorderThickness="1" BorderBrush="{DynamicResource Color_BD_Button_InnerGrow}">
  34. <Border.Effect>
  35. <BlurEffect/>
  36. </Border.Effect>
  37. </Border>
  38. <Border x:Name="Highlight" BorderThickness="1" Background="{DynamicResource Color_BG_Button_Highlight}" Opacity="0">
  39. <Border.Effect>
  40. <BlurEffect/>
  41. </Border.Effect>
  42. </Border>
  43. <TextBlock Text="{TemplateBinding Content}" Foreground="{TemplateBinding Foreground}" VerticalAlignment="Center" HorizontalAlignment="Center">
  44. <TextBlock.Effect>
  45. <DropShadowEffect BlurRadius="3" ShadowDepth="2" Color="#FF008A40"/>
  46. </TextBlock.Effect>
  47. </TextBlock>
  48. </Grid>
  49. </Border>
  50. <ControlTemplate.Triggers>
  51. <Trigger Property="IsMouseOver" Value="true">
  52. <Setter Property="Opacity" TargetName="Highlight" Value="0.5"/>
  53. </Trigger>
  54. <Trigger Property="IsPressed" Value="True">
  55. <Setter Property="Opacity" TargetName="Highlight" Value="0.5"/>
  56. </Trigger>
  57. <Trigger Property="IsEnabled" Value="false">
  58. <Setter Property="Foreground" Value="#ADADAD"/>
  59. </Trigger>
  60. </ControlTemplate.Triggers>
  61. </ControlTemplate>
  62. </Setter.Value>
  63. </Setter>
  64. </Style>
  65. <Style x:Key="SysBtnStyle" TargetType="{x:Type Button}">
  66. <Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
  67. <Setter Property="Background" Value="{DynamicResource Color_BG_LoginButton}"/>
  68. <Setter Property="BorderBrush" Value="White"/>
  69. <Setter Property="BorderThickness" Value="1"/>
  70. <Setter Property="FontFamily" Value="Arial"/>
  71. <Setter Property="FontWeight" Value="Bold"/>
  72. <Setter Property="FontSize" Value="12"/>
  73. <Setter Property="Foreground" Value="White"/>
  74. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  75. <Setter Property="VerticalContentAlignment" Value="Center"/>
  76. <Setter Property="Padding" Value="1"/>
  77. <Setter Property="Focusable" Value="False"/>
  78. <Setter Property="Template">
  79. <Setter.Value>
  80. <ControlTemplate TargetType="{x:Type Button}">
  81. <Border x:Name="Bd" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="true" BorderBrush="Silver" Cursor="Hand" Background="#009ad6" CornerRadius="4">
  82. <Grid>
  83. <Border BorderThickness="1" BorderBrush="{DynamicResource Color_BD_WindowButton_InnerGrow}" >
  84. <Border.Effect>
  85. <BlurEffect/>
  86. </Border.Effect>
  87. </Border>
  88. <Border x:Name="Highlight" BorderThickness="1" Background="{DynamicResource Color_BG_WindowButton_Highlight}" Opacity="0">
  89. <Border.Effect>
  90. <BlurEffect/>
  91. </Border.Effect>
  92. </Border>
  93. <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Cursor="Hand">
  94. </ContentPresenter>
  95. </Grid>
  96. </Border>
  97. <ControlTemplate.Triggers>
  98. <Trigger Property="IsKeyboardFocused" Value="true"/>
  99. <Trigger Property="IsMouseOver" Value="true">
  100. <Setter Property="Opacity" TargetName="Highlight" Value="1"/>
  101. </Trigger>
  102. <Trigger Property="IsEnabled" Value="false">
  103. <Setter TargetName="Bd" Property="Background" Value="#ADADAD"/>
  104. </Trigger>
  105. <Trigger Property="IsPressed" Value="True">
  106. <Setter Property="Foreground" Value="Black" />
  107. </Trigger>
  108. </ControlTemplate.Triggers>
  109. </ControlTemplate>
  110. </Setter.Value>
  111. </Setter>
  112. </Style>
  113. <Style x:Key="SysCloseBtnStyle" TargetType="{x:Type Button}">
  114. <Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
  115. <Setter Property="Background" Value="{DynamicResource Color_BG_LoginButton}"/>
  116. <Setter Property="BorderBrush" Value="{DynamicResource Color_BD_LoginButton}"/>
  117. <Setter Property="BorderThickness" Value="1"/>
  118. <Setter Property="FontFamily" Value="Arial"/>
  119. <Setter Property="FontWeight" Value="Bold"/>
  120. <Setter Property="FontSize" Value="14"/>
  121. <Setter Property="Foreground" Value="{DynamicResource Color_FG_Button_Window}"/>
  122. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  123. <Setter Property="VerticalContentAlignment" Value="Center"/>
  124. <Setter Property="Padding" Value="1"/>
  125. <Setter Property="Template">
  126. <Setter.Value>
  127. <ControlTemplate TargetType="{x:Type Button}">
  128. <Border x:Name="Bd" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="true" BorderBrush="{DynamicResource Color_BD_WindowButton}" Cursor="Hand" Background="{DynamicResource Color_BG_WindowButton}">
  129. <Grid>
  130. <Border BorderThickness="1" BorderBrush="{DynamicResource Color_BD_WindowButton_InnerGrow}">
  131. <Border.Effect>
  132. <BlurEffect/>
  133. </Border.Effect>
  134. </Border>
  135. <Border x:Name="Highlight" BorderThickness="1" Background="{DynamicResource Color_BG_WindowButton_Highlight}" Opacity="0">
  136. <Border.Effect>
  137. <BlurEffect/>
  138. </Border.Effect>
  139. </Border>
  140. <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Cursor="Hand">
  141. </ContentPresenter>
  142. </Grid>
  143. </Border>
  144. <ControlTemplate.Triggers>
  145. <Trigger Property="IsKeyboardFocused" Value="true"/>
  146. <Trigger Property="IsMouseOver" Value="true">
  147. <Setter Property="Opacity" TargetName="Highlight" Value="1"/>
  148. </Trigger>
  149. <Trigger Property="IsEnabled" Value="false">
  150. <Setter Property="Foreground" Value="#ADADAD"/>
  151. </Trigger>
  152. </ControlTemplate.Triggers>
  153. </ControlTemplate>
  154. </Setter.Value>
  155. </Setter>
  156. </Style>
  157. <RadialGradientBrush x:Key="highLight">
  158. <GradientStop Color="#FF64D7FF" Offset="1"></GradientStop>
  159. <GradientStop Color="White" Offset="0.2"></GradientStop>
  160. </RadialGradientBrush>
  161. <LinearGradientBrush x:Key="OperatioNButton_BG_Outer" EndPoint="0.238,0.239" StartPoint="0.85,0.864">
  162. <GradientStop Color="#FF3D3D3D" Offset="0"/>
  163. <GradientStop Color="White" Offset="1"/>
  164. </LinearGradientBrush>
  165. <SolidColorBrush x:Key="OperatioNButton_BD_Outer" Color="#FF545454"/>
  166. <LinearGradientBrush x:Key="OperatioNButton_BD_Inner" EndPoint="1.141,1.123" StartPoint="0.155,0.138">
  167. <GradientStop Color="Black" Offset="0"/>
  168. <GradientStop Color="White" Offset="1"/>
  169. </LinearGradientBrush>
  170. <RadialGradientBrush x:Key="OperatioNButton_BG" GradientOrigin="0.234,0.241">
  171. <GradientStop Color="#FF304E7E" Offset="0"/>
  172. <GradientStop Color="#FF110A6C" Offset="1"/>
  173. </RadialGradientBrush>
  174. <RadialGradientBrush x:Key="OperatioNButton_BG_Highlight" GradientOrigin="0.234,0.241">
  175. <GradientStop Color="#FFECEAFF" Offset="0"/>
  176. <GradientStop Color="#FF5B6EDA" Offset="1"/>
  177. </RadialGradientBrush>
  178. <LinearGradientBrush x:Key="OperatioNButton_BG_Outer_Unable" EndPoint="0.104,0.195" StartPoint="1.192,1.066">
  179. <GradientStop Color="Black" Offset="0"/>
  180. <GradientStop Color="#FFD0D0D0" Offset="1"/>
  181. </LinearGradientBrush>
  182. <SolidColorBrush x:Key="OperatioNButton_BD_Outer_Unable" Color="#FF939393"/>
  183. <LinearGradientBrush x:Key="OperatioNButton_BD_Inner_Unable" EndPoint="1.141,1.123" StartPoint="0.155,0.138">
  184. <GradientStop Color="Black" Offset="0"/>
  185. <GradientStop Color="#FFD0D0D0" Offset="1"/>
  186. </LinearGradientBrush>
  187. <RadialGradientBrush x:Key="OperatioNButton_BG_Unable" GradientOrigin="0.234,0.241">
  188. <GradientStop Color="#FF858585" Offset="0"/>
  189. <GradientStop Color="#FF4E4E4E" Offset="1"/>
  190. </RadialGradientBrush>
  191. <!-- Normal Button style -->
  192. <SolidColorBrush x:Key="OnOffButton_BD" Color="#FF004900"/>
  193. <RadialGradientBrush x:Key="OnOffButton_BG">
  194. <GradientStop Color="#FF003F0F" Offset="0.25"/>
  195. <GradientStop Color="#FF067421" Offset="1"/>
  196. </RadialGradientBrush>
  197. <RadialGradientBrush x:Key="OnOffButton_BG_Highlight">
  198. <GradientStop Color="#FF89FFA6" Offset="0"/>
  199. <GradientStop Color="#FF00FF3F" Offset="1"/>
  200. </RadialGradientBrush>
  201. <RadialGradientBrush x:Key="OnOffButton_BG_Unable">
  202. <GradientStop Color="#FF939393" Offset="0"/>
  203. <GradientStop Color="#FFCACACA" Offset="1"/>
  204. </RadialGradientBrush>
  205. <SolidColorBrush x:Key="Button_BG" Color="#FF376091"/>
  206. <SolidColorBrush x:Key="Button_BD" Color="#FF84B1E5"/>
  207. <SolidColorBrush x:Key="Button_BD_Shadow" Color="#FF004170"/>
  208. <SolidColorBrush x:Key="Button_BD_Shadow_Unable" Color="#FF6C6C6C"/>
  209. <SolidColorBrush x:Key="Button_InnerBG" Color="#FF217BBC"/>
  210. <SolidColorBrush x:Key="Button_BG_MouseOver" Color="#FF6394D0"/>
  211. <LinearGradientBrush x:Key="Button_InnerBG_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
  212. <GradientStop Color="#FFD1E7ED" Offset="0"/>
  213. <GradientStop Color="#FF43BFE9" Offset="1"/>
  214. </LinearGradientBrush>
  215. <SolidColorBrush x:Key="Button_BG_Press" Color="#FFD8E7F5"/>
  216. <LinearGradientBrush x:Key="Button_InnerBG_Press" EndPoint="0.5,1" StartPoint="0.5,0">
  217. <GradientStop Color="#FFD8E7F5" Offset="0"/>
  218. <GradientStop Color="#FFA3C7E9" Offset="1"/>
  219. </LinearGradientBrush>
  220. <SolidColorBrush x:Key="Button_BG_Unable" Color="#A9A9A9"/>
  221. <SolidColorBrush x:Key="Button_BD_Unable" Color="#FFE5E5E5"/>
  222. <LinearGradientBrush x:Key="Button_InnerBG_Unable" EndPoint="0.5,1" StartPoint="0.5,0">
  223. <GradientStop Color="#FFD2D2D2" Offset="0"/>
  224. <GradientStop Color="#FFB2B2B2" Offset="1"/>
  225. </LinearGradientBrush>
  226. <Style TargetType="{x:Type Button}" x:Key="NormalBtn">
  227. <!--<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>-->
  228. <Setter Property="Background" Value="#076DB6"/>
  229. <Setter Property="BorderBrush" Value="Transparent"/>
  230. <Setter Property="BorderThickness" Value="0"/>
  231. <Setter Property="FontFamily" Value="Arial"/>
  232. <Setter Property="FontSize" Value="16"/>
  233. <Setter Property="Foreground" Value="White"/>
  234. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  235. <Setter Property="VerticalContentAlignment" Value="Center"/>
  236. <Setter Property="Padding" Value="1"/>
  237. <Setter Property="SnapsToDevicePixels" Value="True"/>
  238. <Setter Property="Border.CornerRadius" Value="5"/>
  239. <Setter Property="Template">
  240. <Setter.Value>
  241. <ControlTemplate TargetType="{x:Type Button}">
  242. <Border x:Name="BG" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" CornerRadius="{TemplateBinding Border.CornerRadius}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" Cursor="Hand">
  243. <Border x:Name="InnerBD" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}">
  244. <ContentPresenter x:Name="contentpresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Cursor="Hand">
  245. </ContentPresenter>
  246. </Border>
  247. </Border>
  248. <ControlTemplate.Triggers>
  249. <Trigger Property="IsMouseOver" Value="True">
  250. <Setter TargetName="BG" Property="Background" Value="{StaticResource Button_BG_MouseOver}"/>
  251. </Trigger>
  252. <Trigger Property="IsPressed" Value="True">
  253. <Setter TargetName="BG" Property="Background" Value="{StaticResource Button_BG_Press}"/>
  254. </Trigger>
  255. <Trigger Property="IsEnabled" Value="False">
  256. <Setter TargetName="BG" Property="Background" Value="{StaticResource Button_BG_Unable}"/>
  257. <Setter TargetName="BG" Property="BorderBrush" Value="{StaticResource Button_BD_Unable}"/>
  258. <Setter TargetName="InnerBD" Property="BorderBrush" Value="{StaticResource Button_BD_Shadow_Unable}"/>
  259. <!--<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>-->
  260. </Trigger>
  261. </ControlTemplate.Triggers>
  262. </ControlTemplate>
  263. </Setter.Value>
  264. </Setter>
  265. </Style>
  266. <!--<Style x:Key="OverviewRadioButton" TargetType="{x:Type RadioButton}">
  267. <Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
  268. <Setter Property="Background" Value="{DynamicResource Button_BG}"/>
  269. <Setter Property="BorderBrush" Value="{DynamicResource Button_BD}"/>
  270. <Setter Property="BorderThickness" Value="2,2,0,0"/>
  271. <Setter Property="FontFamily" Value="Arial"/>
  272. <Setter Property="FontSize" Value="13"/>
  273. <Setter Property="Foreground" Value="{DynamicResource FG_White}"/>
  274. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  275. <Setter Property="VerticalContentAlignment" Value="Center"/>
  276. <Setter Property="Padding" Value="1"/>
  277. <Setter Property="SnapsToDevicePixels" Value="True"/>
  278. <Setter Property="Border.CornerRadius" Value="5"/>
  279. <Setter Property="Template">
  280. <Setter.Value>
  281. <ControlTemplate TargetType="{x:Type RadioButton}">
  282. <Grid Width="{TemplateBinding Width}" Cursor="Hand">
  283. <Grid.ColumnDefinitions>
  284. <ColumnDefinition Width="15"/>
  285. <ColumnDefinition/>
  286. </Grid.ColumnDefinitions>
  287. <Ellipse x:Name="radioImage" Fill="White" Stroke="{TemplateBinding Background}" Width="15" Height="15" HorizontalAlignment="Center" VerticalAlignment="Center" />
  288. <Border Grid.Column="1" x:Name="BG" Margin="2,0,0,0" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
  289. CornerRadius="{TemplateBinding Border.CornerRadius}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" >
  290. <Border x:Name="InnerBD" BorderBrush="{DynamicResource Button_BD_Shadow}" CornerRadius="5" BorderThickness="0,0,2,2">
  291. <ContentPresenter x:Name="contentpresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}"
  292. RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" />
  293. </Border>
  294. </Border>
  295. </Grid>
  296. <ControlTemplate.Triggers>
  297. <Trigger Property="IsChecked" Value="true">
  298. <Setter TargetName="radioImage" Property="Fill" Value="{DynamicResource Button_BG}"/>
  299. </Trigger>
  300. <Trigger Property="IsMouseOver" Value="True">
  301. <Setter TargetName="BG" Property="Background" Value="{DynamicResource Button_BG_MouseOver}"/>
  302. </Trigger>
  303. <Trigger Property="IsPressed" Value="True">
  304. <Setter TargetName="BG" Property="Background" Value="{DynamicResource Button_BG_Press}"/>
  305. </Trigger>
  306. <Trigger Property="IsEnabled" Value="False">
  307. <Setter TargetName="BG" Property="Background" Value="{DynamicResource Button_BG_Unable}"/>
  308. <Setter TargetName="BG" Property="BorderBrush" Value="{DynamicResource Button_BD_Unable}"/>
  309. <Setter TargetName="InnerBD" Property="BorderBrush" Value="{DynamicResource Button_BD_Shadow_Unable}"/>
  310. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
  311. </Trigger>
  312. </ControlTemplate.Triggers>
  313. </ControlTemplate>
  314. </Setter.Value>
  315. </Setter>
  316. </Style>-->
  317. <!-- Logout Button -->
  318. <!--<LinearGradientBrush x:Key="LogoutBtn_InnerBG_MouseOver" EndPoint="0.5,1" StartPoint="0.5,0">
  319. <GradientStop Color="#FF75D5ED" Offset="0"/>
  320. <GradientStop Color="#FF03B5E2" Offset="1"/>
  321. <GradientStop Color="#FF45C8E9" Offset="0.49"/>
  322. <GradientStop Color="#FF00A0C8" Offset="0.5"/>
  323. </LinearGradientBrush>
  324. <SolidColorBrush x:Key="LogoutBtn_BG_MouseOver" Color="#FF005C8D"/>
  325. <SolidColorBrush x:Key="LogoutBtn_BD" Color="#FF9FBADE"/>
  326. <LinearGradientBrush x:Key="LogoutBtn_InnerBG_Press" EndPoint="0.5,1" StartPoint="0.5,0">
  327. <GradientStop Color="#FFBCE5EF" Offset="0"/>
  328. <GradientStop Color="#FF02C5F5" Offset="1"/>
  329. <GradientStop Color="#FF73D5ED" Offset="0.49"/>
  330. <GradientStop Color="#FF02C5F5" Offset="0.5"/>
  331. </LinearGradientBrush>
  332. <SolidColorBrush x:Key="LogoutBtn_BG_Press" Color="#FF02A6D0"/>
  333. <LinearGradientBrush x:Key="LogoutBtn_InnerBG" EndPoint="0.5,1" StartPoint="0.5,0">
  334. <GradientStop Color="#FF7EA5CD" Offset="0"/>
  335. <GradientStop Color="#FF305F9D" Offset="1"/>
  336. <GradientStop Color="#FF4D83B8" Offset="0.495"/>
  337. <GradientStop Color="#FF27549D" Offset="0.5"/>
  338. </LinearGradientBrush>
  339. <SolidColorBrush x:Key="LogoutBtn_BG" Color="#FF2C4566"/>
  340. <SolidColorBrush x:Key="LogoutBtn_Shadow" Color="#FF0C1F39"/>-->
  341. <!--<Style x:Key="Logout_Button" TargetType="{x:Type Button}">
  342. <Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
  343. <Setter Property="Background" Value="{StaticResource LogoutBtn_BG}"/>
  344. <Setter Property="BorderBrush" Value="{StaticResource LogoutBtn_BD}"/>
  345. <Setter Property="BorderThickness" Value="2,2,0,0"/>
  346. <Setter Property="FontFamily" Value="Arial"/>
  347. <Setter Property="FontWeight" Value="Bold"/>
  348. <Setter Property="FontSize" Value="18"/>
  349. <Setter Property="Foreground" Value="{DynamicResource FG_Black}"/>
  350. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  351. <Setter Property="VerticalContentAlignment" Value="Center"/>
  352. <Setter Property="Padding" Value="1"/>
  353. <Setter Property="SnapsToDevicePixels" Value="True"/>
  354. <Setter Property="Border.CornerRadius" Value="4"/>
  355. <Setter Property="Template">
  356. <Setter.Value>
  357. <ControlTemplate TargetType="{x:Type Button}">
  358. <Border x:Name="BG" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" CornerRadius="{TemplateBinding Border.CornerRadius}" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}" Cursor="Hand">
  359. <Border x:Name="InnerBG" BorderBrush="{StaticResource LogoutBtn_Shadow}" BorderThickness="0,0,2,2" CornerRadius="{TemplateBinding Border.CornerRadius}">
  360. <Grid>
  361. <Rectangle x:Name="Inner_BG" Margin="3" RadiusX="1" RadiusY="1" Fill="{DynamicResource LogoutBtn_InnerBG}">
  362. <Rectangle.Effect>
  363. <BlurEffect Radius="8"/>
  364. </Rectangle.Effect>
  365. </Rectangle>
  366. <Rectangle x:Name="Highlight" Fill="White" Height="5" Margin="10,3,10,0" RadiusY="4" RadiusX="4" VerticalAlignment="Top" Opacity="0.8">
  367. <Rectangle.Effect>
  368. <BlurEffect Radius="3"/>
  369. </Rectangle.Effect>
  370. </Rectangle>
  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" Color="White" ShadowDepth="1" Direction="135"/>
  374. </ContentPresenter.Effect>
  375. </ContentPresenter>
  376. </Grid>
  377. </Border>
  378. </Border>
  379. <ControlTemplate.Triggers>
  380. <Trigger Property="IsMouseOver" Value="True">
  381. <Setter TargetName="BG" Property="Background" Value="{StaticResource LogoutBtn_BG_MouseOver}"/>
  382. <Setter TargetName="Inner_BG" Property="Fill" Value="{StaticResource LogoutBtn_InnerBG_MouseOver}"/>
  383. </Trigger>
  384. <Trigger Property="IsPressed" Value="True">
  385. <Setter TargetName="BG" Property="Background" Value="{StaticResource LogoutBtn_BG_Press}"/>
  386. <Setter TargetName="Inner_BG" Property="Fill" Value="{StaticResource LogoutBtn_InnerBG_Press}"/>
  387. </Trigger>
  388. <Trigger Property="IsEnabled" Value="False">
  389. <Setter TargetName="BG" Property="Background" Value="{StaticResource Button_BG_Unable}"/>
  390. <Setter TargetName="BG" Property="BorderBrush" Value="{StaticResource Button_BD_Unable}"/>
  391. <Setter TargetName="InnerBG" Property="BorderBrush" Value="{StaticResource Button_BD_Unable}"/>
  392. <Setter TargetName="Inner_BG" Property="Fill" Value="{StaticResource Button_InnerBG_Unable}"/>
  393. <Setter Property="Opacity" TargetName="Highlight" Value="0"/>
  394. <Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.GrayTextBrushKey}}"/>
  395. <Setter Property="Effect" TargetName="contentpresenter">
  396. <Setter.Value>
  397. <DropShadowEffect BlurRadius="0" Color="White" Direction="135" Opacity="0" ShadowDepth="1"/>
  398. </Setter.Value>
  399. </Setter>
  400. </Trigger>
  401. </ControlTemplate.Triggers>
  402. </ControlTemplate>
  403. </Setter.Value>
  404. </Setter>
  405. </Style>-->
  406. <!-- Login Button -->
  407. <!--<SolidColorBrush x:Key="Login_Btn_BD_Highlight" Color="#FF84ADEB"/>
  408. <SolidColorBrush x:Key="Login_Btn_BD_Shadow" Color="#FF1E385B"/>
  409. <SolidColorBrush x:Key="Login_Btn_BG" Color="#FF005895"/>
  410. <SolidColorBrush x:Key="Login_Btn_BD_MouseOver_Highlight" Color="#FFA1E7FF"/>
  411. <SolidColorBrush x:Key="Login_Btn_BG_MouseOver" Color="DeepSkyBlue"/>
  412. <SolidColorBrush x:Key="Login_Btn_BD_MouseOver_Shadow" Color="#FF005B7A"/>
  413. <SolidColorBrush x:Key="Login_Btn_BG_Press" Color="#FF85E0FF"/>-->
  414. </ResourceDictionary>