|
1 | | -<Application x:Class="SVNPathCopy.Configuration.App" |
2 | | - xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 | | - xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 | | - xmlns:converters="clr-namespace:SVNPathCopy.Configuration.Converters" |
5 | | - StartupUri="MainWindow.xaml"> |
| 1 | +<Application |
| 2 | + x:Class="SVNPathCopy.Configuration.App" |
| 3 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 4 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 5 | + xmlns:converters="clr-namespace:SVNPathCopy.Configuration.Converters" |
| 6 | + StartupUri="MainWindow.xaml" |
| 7 | +> |
6 | 8 | <Application.Resources> |
7 | 9 | <ResourceDictionary> |
8 | 10 | <!-- Converters --> |
|
33 | 35 | <Setter Property="Template"> |
34 | 36 | <Setter.Value> |
35 | 37 | <ControlTemplate TargetType="Button"> |
36 | | - <Border Background="{TemplateBinding Background}" |
37 | | - CornerRadius="4" |
38 | | - Padding="{TemplateBinding Padding}"> |
39 | | - <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" /> |
| 38 | + <Border |
| 39 | + Background="{TemplateBinding Background}" |
| 40 | + CornerRadius="4" |
| 41 | + Padding="{TemplateBinding Padding}" |
| 42 | + > |
| 43 | + <ContentPresenter |
| 44 | + HorizontalAlignment="Center" |
| 45 | + VerticalAlignment="Center" |
| 46 | + /> |
40 | 47 | </Border> |
41 | 48 | <ControlTemplate.Triggers> |
42 | 49 | <Trigger Property="IsMouseOver" Value="True"> |
43 | | - <Setter Property="Background" Value="{StaticResource PrimaryHoverBrush}" /> |
| 50 | + <Setter |
| 51 | + Property="Background" |
| 52 | + Value="{StaticResource PrimaryHoverBrush}" |
| 53 | + /> |
44 | 54 | </Trigger> |
45 | 55 | <Trigger Property="IsEnabled" Value="False"> |
46 | 56 | <Setter Property="Opacity" Value="0.5" /> |
|
61 | 71 | <Setter Property="Template"> |
62 | 72 | <Setter.Value> |
63 | 73 | <ControlTemplate TargetType="Button"> |
64 | | - <Border Background="{TemplateBinding Background}" |
65 | | - BorderBrush="{TemplateBinding BorderBrush}" |
66 | | - BorderThickness="{TemplateBinding BorderThickness}" |
67 | | - CornerRadius="4" |
68 | | - Padding="{TemplateBinding Padding}"> |
69 | | - <ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" /> |
| 74 | + <Border |
| 75 | + Background="{TemplateBinding Background}" |
| 76 | + BorderBrush="{TemplateBinding BorderBrush}" |
| 77 | + BorderThickness="{TemplateBinding BorderThickness}" |
| 78 | + CornerRadius="4" |
| 79 | + Padding="{TemplateBinding Padding}" |
| 80 | + > |
| 81 | + <ContentPresenter |
| 82 | + HorizontalAlignment="Center" |
| 83 | + VerticalAlignment="Center" |
| 84 | + /> |
70 | 85 | </Border> |
71 | 86 | <ControlTemplate.Triggers> |
72 | 87 | <Trigger Property="IsMouseOver" Value="True"> |
|
85 | 100 | <ControlTemplate TargetType="CheckBox"> |
86 | 101 | <StackPanel Orientation="Horizontal"> |
87 | 102 | <Grid Width="44" Height="22"> |
88 | | - <Border x:Name="track" |
89 | | - Background="#CCCCCC" |
90 | | - CornerRadius="11" |
91 | | - BorderThickness="0" /> |
92 | | - <Ellipse x:Name="thumb" |
93 | | - Width="18" Height="18" |
94 | | - Fill="White" |
95 | | - HorizontalAlignment="Left" |
96 | | - Margin="2,0,0,0"> |
| 103 | + <Border |
| 104 | + x:Name="track" |
| 105 | + Background="#CCCCCC" |
| 106 | + CornerRadius="11" |
| 107 | + BorderThickness="0" |
| 108 | + /> |
| 109 | + <Ellipse |
| 110 | + x:Name="thumb" |
| 111 | + Width="18" |
| 112 | + Height="18" |
| 113 | + Fill="White" |
| 114 | + HorizontalAlignment="Left" |
| 115 | + Margin="2,0,0,0" |
| 116 | + > |
97 | 117 | <Ellipse.Effect> |
98 | | - <DropShadowEffect BlurRadius="4" ShadowDepth="1" Opacity="0.3" /> |
| 118 | + <DropShadowEffect |
| 119 | + BlurRadius="4" |
| 120 | + ShadowDepth="1" |
| 121 | + Opacity="0.3" |
| 122 | + /> |
99 | 123 | </Ellipse.Effect> |
100 | 124 | </Ellipse> |
101 | 125 | </Grid> |
102 | 126 | <ContentPresenter Margin="8,0,0,0" VerticalAlignment="Center" /> |
103 | 127 | </StackPanel> |
104 | 128 | <ControlTemplate.Triggers> |
105 | 129 | <Trigger Property="IsChecked" Value="True"> |
106 | | - <Setter TargetName="track" Property="Background" |
107 | | - Value="{StaticResource PrimaryBrush}" /> |
108 | | - <Setter TargetName="thumb" Property="HorizontalAlignment" Value="Right" /> |
| 130 | + <Setter |
| 131 | + TargetName="track" |
| 132 | + Property="Background" |
| 133 | + Value="{StaticResource PrimaryBrush}" |
| 134 | + /> |
| 135 | + <Setter |
| 136 | + TargetName="thumb" |
| 137 | + Property="HorizontalAlignment" |
| 138 | + Value="Right" |
| 139 | + /> |
109 | 140 | <Setter TargetName="thumb" Property="Margin" Value="0,0,2,0" /> |
110 | 141 | </Trigger> |
111 | 142 | <Trigger Property="IsEnabled" Value="False"> |
|
0 commit comments