-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathApp.xaml
79 lines (67 loc) · 3.64 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
<Application x:Class="PDFRider.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:PDFRider">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="LocTable.xaml" />
</ResourceDictionary.MergedDictionaries>
<!-- This converter is native of WPF! -->
<BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter" />
<Style x:Key="GenericStyle" TargetType="Control">
<Setter Property="FontFamily" Value="Verdana" />
<Setter Property="FontSize" Value="12" />
<Setter Property="Foreground" Value="Black" />
</Style>
<Style x:Key="MenuStyle" TargetType="Menu" BasedOn="{StaticResource GenericStyle}">
<Setter Property="Background" Value="Transparent" />
</Style>
<Style x:Key="MainMenuItemStyle" TargetType="MenuItem" BasedOn="{StaticResource GenericStyle}">
<Setter Property="Margin" Value="0,0,5,0" />
</Style>
<Style TargetType="MenuItem" BasedOn="{StaticResource GenericStyle}">
</Style>
<Style x:Key="StandardRectangleButton" TargetType="Button">
<Setter Property="MinWidth" Value="80" />
<Setter Property="Width" Value="Auto" />
</Style>
<Style x:Key="StandardRectangleDialogButton" TargetType="Button"
BasedOn="{StaticResource StandardRectangleButton}">
<Setter Property="Margin" Value="5" />
</Style>
<Style x:Key="IntervalTextBox" TargetType="{x:Type local:IntervalTextBox}">
<Setter Property="Width" Value="50" />
<Setter Property="Margin" Value="5" />
<Style.Triggers>
<Trigger Property="IsValidInterval" Value="False">
<Setter Property="Background" Value="#80FF0000" />
</Trigger>
</Style.Triggers>
</Style>
<Style x:Key="LabelTextBlock" TargetType="TextBlock">
<Setter Property="VerticalAlignment" Value="Center" />
<Setter Property="Margin" Value="5" />
</Style>
<Style x:Key="InformationTextBlock" TargetType="TextBlock">
<Setter Property="TextWrapping" Value="WrapWithOverflow" />
<Setter Property="Margin" Value="5" />
<Setter Property="Foreground" Value="DarkOrange" />
<Setter Property="FontStyle" Value="Italic" />
<Setter Property="VerticalAlignment" Value="Center" />
</Style>
<Style x:Key="MenuItemImage" TargetType="Image">
<Setter Property="Width" Value="20" />
<Setter Property="Height" Value="20" />
</Style>
<Style x:Key="SmallImage" TargetType="Image">
<Setter Property="Width" Value="16" />
<Setter Property="Height" Value="16" />
</Style>
<Style x:Key="BigImage" TargetType="Image">
<Setter Property="Width" Value="48" />
<Setter Property="Height" Value="48" />
</Style>
</ResourceDictionary>
</Application.Resources>
</Application>