App.xaml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <Application x:Class="practica12.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:practica12"
  5. StartupUri="MainWindow.xaml">
  6. <Application.Resources>
  7. <Style TargetType="Window" x:Key="BColor">
  8. <!--задний фон-->
  9. <Setter Property="Background">
  10. <Setter.Value>
  11. <LinearGradientBrush EndPoint="0.6,2" StartPoint="0.5,0">
  12. <GradientStop Color=" #fac716" Offset="0"/>
  13. <GradientStop Color="#bae3e8" Offset="1"/>
  14. </LinearGradientBrush>
  15. </Setter.Value>
  16. </Setter>
  17. </Style>
  18. <Style TargetType="Page" x:Key="PageBColor">
  19. <!--задний фон-->
  20. <Setter Property="Background">
  21. <Setter.Value>
  22. <LinearGradientBrush EndPoint="0.6,2" StartPoint="0.5,0">
  23. <GradientStop Color="#fac716" Offset="0"/>
  24. <GradientStop Color="#bae3e8" Offset="1"/>
  25. </LinearGradientBrush>
  26. </Setter.Value>
  27. </Setter>
  28. </Style>
  29. <Style x:Key="TBStyle" TargetType="TextBlock">
  30. <!--текст-->
  31. <Setter Property="FontSize" Value="16"/>
  32. <Setter Property="FontWeight" Value="Bold"/>
  33. <Setter Property="HorizontalAlignment" Value="Center"/>
  34. <Setter Property="VerticalAlignment" Value="Center"/>
  35. <Setter Property="Foreground" Value="#445c93"/>
  36. </Style>
  37. <Style x:Key="btnstyle1" TargetType="Button">
  38. <!--кнопки-->
  39. <Style.Setters>
  40. <Setter Property="Background" Value="#e31e24"/>
  41. <Setter Property="FontWeight" Value="DemiBold"/>
  42. <Setter Property="Height" Value="auto"/>
  43. <Setter Property="Width" Value="250"/>
  44. <Setter Property="FontSize" Value="14"/>
  45. <Setter Property="Margin" Value="5"/>
  46. <Setter Property="Foreground" Value="White"/>
  47. </Style.Setters>
  48. </Style>
  49. </Application.Resources>
  50. </Application>