-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.xaml
103 lines (101 loc) · 4.99 KB
/
App.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<Application x:Class="Фотостудия.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Фотостудия"
StartupUri="MainWindow.xaml">
<Application.Resources>
<Style TargetType="DataGrid">
<Setter Property="Background" Value="#DDDDDD"/>
<!-- Make the border and grid lines a little less imposing -->
<Setter Property="BorderBrush" Value="#DDDDDD" />
<Setter Property="HorizontalGridLinesBrush" Value="#DDDDDD" />
<Setter Property="VerticalGridLinesBrush" Value="#DDDDDD" />
<Setter Property="RowStyle">
<Setter.Value>
<Style TargetType="DataGridRow">
<Style.Triggers>
<!-- Highlight a grid row as the mouse passes over -->
<Trigger Property="IsMouseOver" Value="True">
<Setter Property="Background" Value="LightCyan" />
</Trigger>
</Style.Triggers>
</Style>
</Setter.Value>
</Setter>
<Setter Property="CellStyle">
<Setter.Value>
<Style TargetType="DataGridCell">
<Style.Triggers>
<!-- Highlight selected rows -->
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="#ff66ccff" />
<Setter Property="BorderBrush" Value="Transparent" />
<Setter Property="Foreground" Value="Black" />
</Trigger>
<Trigger Property="IsFocused" Value="True">
<Setter Property="Background" Value="#ff66ccff" />
<Setter Property="BorderBrush" Value="Black" />
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Foreground" Value="Black" />
</Trigger>
</Style.Triggers>
<!-- Add some padding around the contents of a cell -->
<Setter Property="Padding" Value="4,3,4,3" />
<Setter Property="BorderBrush" Value="Transparent"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="DataGridCell">
<Border Padding="5"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
Background="{TemplateBinding Background}">
<ContentPresenter />
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="FocusVisualStyle">
<Setter.Value>
<Style TargetType="Control">
<Setter Property="BorderBrush" Value="Transparent" />
</Style>
</Setter.Value>
</Setter>
</Style>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="Label">
<Setter Property="FontFamily" Value="Inter"/>
</Style>
<Style TargetType="TextBox">
<Setter Property="FontFamily" Value="Inter"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
</Style>
<Style TargetType="Button">
<Setter Property="FontFamily" Value="Inter"/>
</Style>
<Style TargetType="TextBlock" x:Key="tblMenu">
<Setter Property="FontFamily" Value="Inter"/>
<Setter Property="FontSize" Value="22"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="Width" Value="250"/>
</Style>
<Style TargetType="Image" x:Key="imgMenu">
<Setter Property="Margin" Value="10"/>
<Setter Property="Height" Value="40"/>
<Setter Property="Width" Value="40"/>
</Style>
<Style TargetType="Button" x:Key="mainBtnns">
<Setter Property="Background" Value="#18359C"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="BorderBrush" Value="Transparent"/>
</Style>
<Style TargetType="Border" x:Key="forAddWin">
<Setter Property="CornerRadius" Value="8"/>
<Setter Property="Background" Value="#18359C"/>
<Setter Property="Margin" Value="0, 15"/>
</Style>
</Application.Resources>
</Application>