-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCustomWidgets.xaml
75 lines (70 loc) · 3.69 KB
/
CustomWidgets.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
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<!-- TODO: Add a custom design when a click is done on the button -->
<Style TargetType="Button" x:Key="WinTakButtonDesign">
<Setter Property="Foreground" Value="White" />
<Setter Property="Background" Value="Black" />
<Setter Property="Margin" Value="0,1,0,1" />
<Setter Property="TextBlock.TextAlignment" Value="Center" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Border CornerRadius="5"
Background="Black" BorderBrush="#FF797979" BorderThickness="2,2,2,2" >
<ContentPresenter x:Name="contentPresenter"
ContentTemplate="{TemplateBinding ContentTemplate}"
Content="{TemplateBinding Content}"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Width="Auto"
Height="25" />
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<!-- TODO : Change the color regarding the Toggle Status ? (shortcut Ctrl+K, Ctrl+H) -->
<Style TargetType="ToggleButton" x:Key="WinTakToggleButtonDesign">
<Setter Property="Foreground" Value="White" />
<Setter Property="Background" Value="Black" />
<Setter Property="Margin" Value="0,1,0,1" />
<Setter Property="TextBlock.TextAlignment" Value="Center" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="ToggleButton">
<Border CornerRadius="5"
Background="Black" BorderBrush="#FF797979" BorderThickness="2,2,2,2" >
<ContentPresenter x:Name="contentPresenter"
ContentTemplate="{TemplateBinding ContentTemplate}"
Content="{TemplateBinding Content}"
HorizontalAlignment="Center"
VerticalAlignment="Center"
Width="Auto"
Height="25" />
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
<Style TargetType="Separator" x:Key="WinTakSeparatorDesign">
<Setter Property="Margin" Value="0,5,0,5" />
</Style>
<Style TargetType="TextBlock" x:Key="WinTakTextBlockTextDesign">
<Setter Property="Foreground" Value="White" />
<Setter Property="TextWrapping" Value="Wrap" />
</Style>
<Style TargetType="TextBlock" x:Key="WinTakTextBlockTextTitle">
<Setter Property="Foreground" Value="White" />
<Setter Property="TextWrapping" Value="Wrap" />
<Setter Property="FontSize" Value="15" />
<Setter Property="Margin" Value="0,5,0,5" />
</Style>
<Style x:Key="RowNumberStyle" TargetType="{x:Type TextBlock}" >
<Setter Property="VerticalAlignment" Value="Top" />
<Setter Property="HorizontalAlignment" Value="Left" />
<Setter Property="Margin" Value="0,6,0,0" />
</Style>
<Style x:Key="TextInputStyle" TargetType="{x:Type TextBox}" BasedOn="{StaticResource {x:Type TextBox}}" >
<Setter Property="TextBoxBase.SelectionBrush" Value="#FFA9A9A9" />
</Style>
</ResourceDictionary>