-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.xaml
29 lines (24 loc) · 1.43 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
<Application x:Class="Calculator_.NET_Core.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Calculator_.NET_Core"
StartupUri="MainWindow.xaml">
<Application.Resources>
<SolidColorBrush x:Key="blackColor" Color="Black"/>
<SolidColorBrush x:Key="whiteColor" Color="GhostWhite"/>
<SolidColorBrush x:Key="yellowColor" Color="Orange"/>
<SolidColorBrush x:Key="grayColor" Color="DarkGray"/>
<Style TargetType="Button" x:Key="numberButtonAttribute">
<Setter Property="Foreground" Value="{StaticResource whiteColor}"/>
<Setter Property="Background" Value="{StaticResource blackColor}"/>
<Setter Property="FontSize" Value="30"/>
</Style>
<Style TargetType="Button" x:Key="operatorButtonAttribute" BasedOn="{StaticResource numberButtonAttribute}">
<Setter Property="Background" Value="{StaticResource yellowColor}"/>
</Style>
<Style TargetType="Button" x:Key="additionalButtonAttribute" BasedOn="{StaticResource numberButtonAttribute}">
<Setter Property="Foreground" Value="{StaticResource blackColor}"/>
<Setter Property="Background" Value="{StaticResource grayColor}"/>
</Style>
</Application.Resources>
</Application>