Skip to content

Commit 7b778c3

Browse files
Merge pull request #349 from CommunityToolkit/users/niels9001/settingscontrols-fixes
[SettingsControls] Minor UI tweaks
2 parents b2b9f85 + fa58dc1 commit 7b778c3

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

labs/SettingsControls/src/CommunityToolkit.Labs.WinUI.SettingsControls.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<Description>
1919
This package contains the SettingsCard and SettingsExpander controls.
2020
</Description>
21-
<Version>0.0.11</Version>
21+
<Version>0.0.12</Version>
2222
<LangVersion>10.0</LangVersion>
2323
</PropertyGroup>
2424

labs/SettingsControls/src/SettingsCard/SettingsCard.xaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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. -->
22
<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
44
xmlns:labs="using:CommunityToolkit.Labs.WinUI"
@@ -305,8 +305,8 @@
305305
<Setter Target="PART_HeaderIconPresenterHolder.Visibility" Value="Collapsed" />
306306
<Setter Target="PART_DescriptionPresenter.Visibility" Value="Collapsed" />
307307
<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" />
310310
<Setter Target="PART_ContentPresenter.HorizontalAlignment" Value="Left" />
311311
</VisualState.Setters>
312312
</VisualState>
@@ -322,6 +322,7 @@
322322
<Setter Target="PART_ContentPresenter.HorizontalAlignment" Value="Stretch" />
323323
<Setter Target="PART_ContentPresenter.HorizontalContentAlignment" Value="Left" />
324324
<Setter Target="PART_ContentPresenter.Margin" Value="{ThemeResource SettingsCardVerticalHeaderContentSpacing}" />
325+
<Setter Target="HeaderPanel.Margin" Value="0" />
325326
</VisualState.Setters>
326327
</VisualState>
327328
<VisualState x:Name="RightWrappedNoIcon">
@@ -336,6 +337,7 @@
336337
<Setter Target="PART_ContentPresenter.HorizontalAlignment" Value="Stretch" />
337338
<Setter Target="PART_ContentPresenter.HorizontalContentAlignment" Value="Left" />
338339
<Setter Target="PART_ContentPresenter.Margin" Value="{ThemeResource SettingsCardVerticalHeaderContentSpacing}" />
340+
<Setter Target="HeaderPanel.Margin" Value="0" />
339341
</VisualState.Setters>
340342
</VisualState>
341343
<VisualState x:Name="Vertical">
@@ -364,8 +366,9 @@
364366
Content="{TemplateBinding HeaderIcon}" />
365367
</Viewbox>
366368

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"
369372
VerticalAlignment="Center"
370373
Orientation="Vertical">
371374
<ContentPresenter x:Name="PART_HeaderPresenter"
@@ -408,7 +411,6 @@
408411

409412
<ContentPresenter x:Name="PART_ContentPresenter"
410413
Grid.Column="2"
411-
MinWidth="{ThemeResource SettingsCardContentMinWidth}"
412414
HorizontalAlignment="Right"
413415
VerticalAlignment="Center"
414416
HorizontalContentAlignment="{TemplateBinding HorizontalContentAlignment}"

0 commit comments

Comments
 (0)