|
17 | 17 | <Setter Property="SnapsToDevicePixels" Value="True" />
|
18 | 18 | <Setter Property="UseLayoutRounding" Value="True" />
|
19 | 19 | <Setter Property="TextOptions.TextFormattingMode" Value="Ideal" />
|
20 |
| - <Setter Property="WindowStyle" Value="None" /> |
21 | 20 | <Setter Property="FontFamily" Value="{DynamicResource WD.FontFamily}" />
|
22 | 21 | <Setter Property="shell:WindowChrome.WindowChrome">
|
23 | 22 | <Setter.Value>
|
|
27 | 26 | <Setter Property="Template">
|
28 | 27 | <Setter.Value>
|
29 | 28 | <ControlTemplate TargetType="{x:Type wd:Window}">
|
30 |
| - <ControlTemplate.Resources> |
31 |
| - <Style TargetType="Grid"> |
32 |
| - <Setter Property="Background" Value="Transparent" /> |
33 |
| - </Style> |
34 |
| - </ControlTemplate.Resources> |
35 | 29 | <Border
|
36 | 30 | Name="PART_Border"
|
37 | 31 | Background="{TemplateBinding Background}"
|
|
43 | 37 | <RowDefinition Height="Auto" />
|
44 | 38 | <RowDefinition Height="*" />
|
45 | 39 | </Grid.RowDefinitions>
|
46 |
| - <control:SmallPanel |
47 |
| - x:Name="PART_Normal" |
| 40 | + <Border |
48 | 41 | Grid.Row="0"
|
49 |
| - Background="{TemplateBinding TitleBackground}"> |
| 42 | + Margin="0,0,-1,0" |
| 43 | + HorizontalAlignment="Stretch" |
| 44 | + Background="{TemplateBinding TitleBackground}" /> |
| 45 | + <control:SmallPanel x:Name="PART_Normal" Grid.Row="0"> |
50 | 46 | <Grid Height="{TemplateBinding TitleHeight}">
|
51 | 47 | <Grid.ColumnDefinitions>
|
52 | 48 | <ColumnDefinition Width="*" />
|
|
85 | 81 | Orientation="Horizontal">
|
86 | 82 | <StackPanel x:Name="PART_TitleBarMinAndMax" Orientation="Horizontal">
|
87 | 83 | <Button
|
88 |
| - Name="PART_TitleBarMinimizeButton" |
| 84 | + x:Name="PART_TitleBarMinimizeButton" |
89 | 85 | Padding="0"
|
90 | 86 | Command="{Binding Source={x:Static shell:SystemCommands.MinimizeWindowCommand}}"
|
91 | 87 | IsTabStop="False"
|
|
101 | 97 | </Grid>
|
102 | 98 | </Button>
|
103 | 99 | <Button
|
104 |
| - Name="PART_TitleBarMaximizeButton" |
| 100 | + x:Name="PART_TitleBarMaximizeButton" |
105 | 101 | Padding="0"
|
106 | 102 | Command="{Binding Source={x:Static shell:SystemCommands.MaximizeWindowCommand}}"
|
107 | 103 | IsTabStop="False"
|
|
120 | 116 | </Grid>
|
121 | 117 | </Button>
|
122 | 118 | <Button
|
123 |
| - Name="PART_TitleBarRestoreButton" |
| 119 | + x:Name="PART_TitleBarRestoreButton" |
124 | 120 | Padding="0"
|
125 | 121 | Command="{Binding Source={x:Static shell:SystemCommands.RestoreWindowCommand}}"
|
126 | 122 | IsTabStop="False"
|
|
162 | 158 | <control:SmallPanel
|
163 | 159 | x:Name="PART_HighTitleBar"
|
164 | 160 | Grid.Row="0"
|
165 |
| - Background="{TemplateBinding TitleBackground}" |
166 | 161 | Visibility="Collapsed">
|
167 | 162 | <Grid
|
168 | 163 | x:Name="PART_GridChrome"
|
|
213 | 208 | </Grid>
|
214 | 209 | </Button>
|
215 | 210 | <Button
|
216 |
| - Name="PART_MaximizeButton" |
| 211 | + x:Name="PART_MaximizeButton" |
217 | 212 | Padding="0"
|
218 | 213 | Command="{Binding Source={x:Static shell:SystemCommands.MaximizeWindowCommand}}"
|
219 | 214 | IsTabStop="False"
|
|
232 | 227 | </Grid>
|
233 | 228 | </Button>
|
234 | 229 | <Button
|
235 |
| - Name="PART_RestoreButton" |
| 230 | + x:Name="PART_RestoreButton" |
236 | 231 | Padding="0"
|
237 | 232 | Command="{Binding Source={x:Static shell:SystemCommands.RestoreWindowCommand}}"
|
238 | 233 | IsTabStop="False"
|
|
0 commit comments