forked from silahian/VisualHFT
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GlobalStyle.xaml
90 lines (84 loc) · 3.96 KB
/
GlobalStyle.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
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:xctk="http://schemas.xceed.com/wpf/xaml/toolkit"
xmlns:local="clr-namespace:VisualHFT"
>
<BooleanToVisibilityConverter x:Key="booleanToVisibilityConverter" />
<Style TargetType="{x:Type DataGrid}">
<Setter Property="AlternatingRowBackground" Value="LightBlue" />
<Setter Property="AlternationCount" Value="2" />
<Setter Property="GridLinesVisibility" Value="Horizontal" />
<Setter Property="HorizontalGridLinesBrush" Value="LightBlue" />
</Style>
<Style x:Key="GridColumnAligmentRight" TargetType="DataGridCell">
<Setter Property="TextBlock.HorizontalAlignment" Value="Stretch" />
<Setter Property="TextBlock.TextAlignment" Value="Right" />
</Style>
<Style x:Key="GridColumnAligmentCenter" TargetType="DataGridCell">
<Setter Property="TextBlock.HorizontalAlignment" Value="Stretch" />
<Setter Property="TextBlock.TextAlignment" Value="Center" />
</Style>
<Style x:Key="GridHeaderAligmentRight" TargetType="DataGridColumnHeader">
<Setter Property="HorizontalContentAlignment" Value="Right"/>
<Setter Property="ContentTemplate">
<Setter.Value>
<DataTemplate>
<TextBlock MinWidth="100" TextWrapping="Wrap" Text="{Binding}"></TextBlock>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
<Style x:Key="GridHeaderAligmentCenter" TargetType="DataGridColumnHeader">
<Setter Property="HorizontalContentAlignment" Value="Center"/>
<Setter Property="ContentTemplate">
<Setter.Value>
<DataTemplate>
<TextBlock MinWidth="100" TextWrapping="Wrap" Text="{Binding}"></TextBlock>
</DataTemplate>
</Setter.Value>
</Setter>
</Style>
<!--USER CONTROLS-->
<Style x:Key="TextBoxDouble" TargetType="TextBox">
<Setter Property="TextAlignment" Value="Right" />
<Setter Property="Margin" Value="5,0,5,0"/>
<Setter Property="FontSize" Value="18" />
</Style>
<Style x:Key="LabelDisplayValue" TargetType="Label">
<Setter Property="Margin" Value="5,0,5,0"/>
<Setter Property="FontSize" Value="18" />
</Style>
<!--END USER CONTROLS-->
<!--STATISTICS VIEW-->
<Style x:Key="CardTitleUnderline" TargetType="Border">
<Setter Property="BorderBrush" Value="White"/>
<Setter Property="BorderThickness" Value="1"/>
<Setter Property="Margin" Value="5,0,5,0"/>
</Style>
<Style x:Key="CardTitles" TargetType="Label">
<Setter Property="Foreground" Value="White" />
<Setter Property="Margin" Value="5,0,5,0"/>
<Setter Property="FontSize" Value="18" />
<Setter Property="FontWeight" Value="Bold" />
<Setter Property="HorizontalContentAlignment" Value="Center" />
</Style>
<Style x:Key="CardItems" TargetType="Label">
<Setter Property="Foreground" Value="LightGray" />
<Setter Property="Padding" Value="0,1" />
<Setter Property="FontSize" Value="10" />
<Setter Property="HorizontalContentAlignment" Value="Center" />
</Style>
<Style x:Key="CardItemsBig" TargetType="Label">
<Setter Property="Foreground" Value="White" />
<Setter Property="Padding" Value="0,3" />
<Setter Property="FontSize" Value="28" />
<Setter Property="HorizontalContentAlignment" Value="Center" />
</Style>
<Style x:Key="CardItemsSmall" TargetType="Label">
<Setter Property="Foreground" Value="White" />
<Setter Property="Padding" Value="0,3" />
<Setter Property="FontSize" Value="9" />
<Setter Property="HorizontalContentAlignment" Value="Center" />
</Style>
<!--END STATISTICS VIEW-->
</ResourceDictionary>