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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Themes/Dictionary_MyStyle.xaml"/>
<ResourceDictionary Source="pack://application:,,,/FLY.ControlLibrary;component/Converter/Dictionary_MyConv.xaml"/>
</ResourceDictionary.MergedDictionaries>
<Thickness x:Key="ControlMargin">5</Thickness>
<Style TargetType="Button" x:Key="ButtonStyle_icon" BasedOn="{StaticResource ButtonStyle_empty}">
<Style.Resources>
<Style TargetType="TextBlock" >
<Setter Property="FontSize" Value="15"/>
<Setter Property="Foreground" Value="Black"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
</Style>
<Style TargetType="iconPacks:PackIconMaterial" >
<Setter Property="Height" Value="40"/>
<Setter Property="Width" Value="40"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
</Style>
</Style.Resources>
<Style.Setters>
<Setter Property="Foreground" Value="{StaticResource Color_theme_activity}"/>
<Setter Property="Margin" Value="{StaticResource ControlMargin}"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
</Style.Setters>
</Style>
<Style TargetType="Button" x:Key="ButtonStyle_smallIcon" BasedOn="{StaticResource ButtonStyle_empty}">
<Style.Resources>
<Style TargetType="iconPacks:PackIconMaterial" >
<Setter Property="Height" Value="25"/>
<Setter Property="Width" Value="25"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
</Style>
</Style.Resources>
<Style.Setters>
<Setter Property="Foreground" Value="{StaticResource Color_theme_activity}"/>
<Setter Property="Margin" Value="{StaticResource ControlMargin}"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
</Style.Setters>
</Style>
<Style TargetType="Button" x:Key="ButtonStyle_largeIcon" BasedOn="{StaticResource ButtonStyle_empty}">
<Style.Resources>
<Style TargetType="TextBlock" >
<Setter Property="FontSize" Value="18"/>
<Setter Property="Foreground" Value="Black"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
</Style>
<Style TargetType="iconPacks:PackIconMaterial" >
<Setter Property="Height" Value="50"/>
<Setter Property="Width" Value="50"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
</Style>
</Style.Resources>
<Style.Setters>
<Setter Property="Foreground" Value="{StaticResource Color_theme_activity}"/>
<Setter Property="Margin" Value="{StaticResource ControlMargin}"/>
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="HorizontalAlignment" Value="Center"/>
</Style.Setters>
</Style>
<Style TargetType="Button" x:Key="ButtonStyle_back" BasedOn="{StaticResource ButtonStyle_empty}">
<Setter Property="Margin" Value="0,10"/>
<Setter Property="Foreground" Value="White"/>
<Setter Property="Background" Value="{StaticResource Brush_theme_bar}"/>
<Setter Property="Width" Value="60"/>
<Setter Property="Height" Value="{Binding Width,RelativeSource={RelativeSource Mode=Self}}"/>
<Setter Property="Content">
<Setter.Value>
<iconPacks:PackIconMaterial Kind="ArrowLeftBold" SnapsToDevicePixels ="True" Width="30" Height="auto" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="StackPanel" x:Key="SpStyle_Header">
<Setter Property="VerticalAlignment" Value="Center"/>
<Setter Property="Margin" Value="160,0,0,0"/>
<Setter Property="Orientation" Value="Horizontal"/>
<Style.Resources>
<Style TargetType="TextBlock" BasedOn="{StaticResource TextBlockStyle_Title}">
<Setter Property="Foreground" Value="#FF3A3A3A"/>
<Setter Property="FontSize" Value="40"/>
<Setter Property="Margin" Value="0"/>
</Style>
</Style.Resources>
</Style>
<Style TargetType="TextBlock" x:Key="TextBlockStyle_SubHeader" >
<Setter Property="Foreground" Value="{StaticResource Color_theme_activity}"/>
<Setter Property="FontSize" Value="20"/>
<Setter Property="VerticalAlignment" Value="Bottom"/>
</Style>
<Style x:Key="ButtonStyle_clickMe" TargetType="{x:Type Button}">
<Setter Property="FocusVisualStyle">
<Setter.Value>
<Style>
<Setter Property="Control.Template">
<Setter.Value>
<ControlTemplate>
<Rectangle Margin="2" SnapsToDevicePixels="True" Stroke="{StaticResource {x:Static SystemColors.ControlTextBrushKey}}" StrokeThickness="1" StrokeDashArray="1 2"/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</Setter.Value>
</Setter>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="BorderBrush" Value="#FF931616"/>
<Setter Property="Foreground" Value="#FF931616"/>
<Setter Property="BorderThickness" Value="8"/>
<Setter Property="Margin" Value="10"/>
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="VerticalContentAlignment" Value="Center"/>
<Setter Property="Padding" Value="1"/>
<Setter Property="FontSize" Value="40"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="{x:Type Button}">
<Border x:Name="border" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" SnapsToDevicePixels="True">
<ContentPresenter x:Name="contentPresenter"
ContentTemplate="{TemplateBinding ContentTemplate}"
Content="{TemplateBinding Content}"
ContentStringFormat="{TemplateBinding ContentStringFormat}"
Focusable="False"
HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}"
Margin="{TemplateBinding Padding}"
RecognizesAccessKey="True"
SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}"
VerticalAlignment="{TemplateBinding VerticalContentAlignment}"
>
</ContentPresenter>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ResourceDictionary>