|
1 | | -<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. --> |
| 1 | +<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. --> |
2 | 2 | <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
3 | 3 | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
4 | 4 | xmlns:labs="using:CommunityToolkit.Labs.WinUI" |
|
305 | 305 | <Setter Target="PART_HeaderIconPresenterHolder.Visibility" Value="Collapsed" /> |
306 | 306 | <Setter Target="PART_DescriptionPresenter.Visibility" Value="Collapsed" /> |
307 | 307 | <Setter Target="PART_HeaderPresenter.Visibility" Value="Collapsed" /> |
308 | | - <Setter Target="PART_ContentPresenter.(Grid.Column)" Value="0" /> |
309 | | - <Setter Target="PART_ActionIconPresenter.(Grid.Row)" Value="0" /> |
| 308 | + <Setter Target="PART_ContentPresenter.(Grid.Row)" Value="1" /> |
| 309 | + <Setter Target="PART_ContentPresenter.(Grid.Column)" Value="1" /> |
310 | 310 | <Setter Target="PART_ContentPresenter.HorizontalAlignment" Value="Left" /> |
311 | 311 | </VisualState.Setters> |
312 | 312 | </VisualState> |
|
322 | 322 | <Setter Target="PART_ContentPresenter.HorizontalAlignment" Value="Stretch" /> |
323 | 323 | <Setter Target="PART_ContentPresenter.HorizontalContentAlignment" Value="Left" /> |
324 | 324 | <Setter Target="PART_ContentPresenter.Margin" Value="{ThemeResource SettingsCardVerticalHeaderContentSpacing}" /> |
| 325 | + <Setter Target="HeaderPanel.Margin" Value="0" /> |
325 | 326 | </VisualState.Setters> |
326 | 327 | </VisualState> |
327 | 328 | <VisualState x:Name="RightWrappedNoIcon"> |
|
336 | 337 | <Setter Target="PART_ContentPresenter.HorizontalAlignment" Value="Stretch" /> |
337 | 338 | <Setter Target="PART_ContentPresenter.HorizontalContentAlignment" Value="Left" /> |
338 | 339 | <Setter Target="PART_ContentPresenter.Margin" Value="{ThemeResource SettingsCardVerticalHeaderContentSpacing}" /> |
| 340 | + <Setter Target="HeaderPanel.Margin" Value="0" /> |
339 | 341 | </VisualState.Setters> |
340 | 342 | </VisualState> |
341 | 343 | <VisualState x:Name="Vertical"> |
|
364 | 366 | Content="{TemplateBinding HeaderIcon}" /> |
365 | 367 | </Viewbox> |
366 | 368 |
|
367 | | - <StackPanel Grid.Column="1" |
368 | | - Margin="0,0,12,0" |
| 369 | + <StackPanel x:Name="HeaderPanel" |
| 370 | + Grid.Column="1" |
| 371 | + Margin="0,0,24,0" |
369 | 372 | VerticalAlignment="Center" |
370 | 373 | Orientation="Vertical"> |
371 | 374 | <ContentPresenter x:Name="PART_HeaderPresenter" |
|
408 | 411 |
|
409 | 412 | <ContentPresenter x:Name="PART_ContentPresenter" |
410 | 413 | Grid.Column="2" |
411 | | - MinWidth="{ThemeResource SettingsCardContentMinWidth}" |
412 | 414 | HorizontalAlignment="Right" |
413 | 415 | VerticalAlignment="Center" |
414 | 416 | HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}" |
|
0 commit comments