App.xaml 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <Application x:Class="Hotel_Course_Project.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:Hotel_Course_Project"
  5. StartupUri="AuthorizationWindow.xaml">
  6. <Application.Resources>
  7. <ResourceDictionary>
  8. <Style TargetType="Grid">
  9. <Setter Property="Background">
  10. <Setter.Value>
  11. <RadialGradientBrush MappingMode="RelativeToBoundingBox" GradientOrigin="0.9,0.2" Center="0.5,0.5" RadiusX="0.7" RadiusY="0.7">
  12. <GradientStop Color="#FF1B1B15" Offset="1"/>
  13. <GradientStop Color="#FF142F2C"/>
  14. </RadialGradientBrush>
  15. </Setter.Value>
  16. </Setter>
  17. </Style>
  18. <Style TargetType="Button">
  19. <Setter Property="Template">
  20. <Setter.Value>
  21. <ControlTemplate TargetType="Button">
  22. <Grid Background="{TemplateBinding Background}">
  23. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
  24. </Grid>
  25. </ControlTemplate>
  26. </Setter.Value>
  27. </Setter>
  28. <Setter Property="Template">
  29. <Setter.Value>
  30. <ControlTemplate TargetType="Button">
  31. <Border Name="Border" CornerRadius="15" Background="#FF4F5856" BorderBrush="Black" MouseEnter="MouseEnter" MouseLeave="MouseLeave">
  32. <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center"/>
  33. </Border>
  34. </ControlTemplate>
  35. </Setter.Value>
  36. </Setter>
  37. <Setter Property="Background" Value="{Binding ElementName=Border}"/>
  38. </Style>
  39. <Style TargetType="DataGrid">
  40. <Setter Property="FontSize" Value="20"/>
  41. <Setter Property="Foreground" Value="White"/>
  42. <Setter Property="RowBackground" Value="Transparent"/>
  43. <Setter Property="BorderBrush" Value="Transparent"/>
  44. <Setter Property="Background" Value="Transparent"/>
  45. </Style>
  46. <Style x:Key="ColumnHeaderStyle" TargetType="{x:Type DataGridColumnHeader}">
  47. <Setter Property="Background" Value="Transparent" />
  48. <Setter Property="FontWeight" Value="Bold"/>
  49. </Style>
  50. <Style x:Key="RowHeaderStyle" TargetType="{x:Type DataGridRowHeader}">
  51. <Setter Property="Background" Value="Transparent" />
  52. </Style>
  53. </ResourceDictionary>
  54. </Application.Resources>
  55. </Application>