App.xaml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <Application x:Class="PsychoTest.App"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:local="clr-namespace:PsychoTest"
  5. StartupUri="MainWindow.xaml">
  6. <Application.Resources>
  7. <SolidColorBrush x:Key="TextBox.MouseOver.Border" Color="#FF7EB4EA"/>
  8. <SolidColorBrush x:Key="TextBox.Focus.Border" Color="#FF569DE5"/>
  9. <ControlTemplate x:Key="PasswordBoxTemplate1" TargetType="{x:Type PasswordBox}">
  10. <Border x:Name="border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="True">
  11. <ScrollViewer x:Name="PART_ContentHost" Focusable="false" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden"/>
  12. </Border>
  13. <ControlTemplate.Triggers>
  14. </ControlTemplate.Triggers>
  15. </ControlTemplate>
  16. <SolidColorBrush x:Key="Button.MouseOver.Background" Color="#FFBEE6FD"/>
  17. <SolidColorBrush x:Key="Button.MouseOver.Border" Color="#FF3C7FB1"/>
  18. <SolidColorBrush x:Key="Button.Pressed.Background" Color="#FFC4E5F6"/>
  19. <SolidColorBrush x:Key="Button.Pressed.Border" Color="#FF2C628B"/>
  20. <SolidColorBrush x:Key="Button.Disabled.Background" Color="#FFF4F4F4"/>
  21. <SolidColorBrush x:Key="Button.Disabled.Border" Color="#FFADB2B5"/>
  22. <SolidColorBrush x:Key="Button.Disabled.Foreground" Color="#FF838383"/>
  23. <ControlTemplate x:Key="ButtonTemplate1" TargetType="{x:Type ButtonBase}">
  24. <Border CornerRadius="10" x:Name="border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="true">
  25. <ContentPresenter x:Name="contentPresenter" Focusable="False" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
  26. </Border>
  27. <ControlTemplate.Triggers>
  28. <Trigger Property="IsMouseOver" Value="true">
  29. <Setter Property="Background" TargetName="border" Value="#FFB736"/>
  30. </Trigger>
  31. <Trigger Property="IsPressed" Value="true">
  32. <Setter Property="Background" TargetName="border" Value="#FFB736"/>
  33. </Trigger>
  34. </ControlTemplate.Triggers>
  35. </ControlTemplate>
  36. </Application.Resources>
  37. </Application>