Skip to content

Commit bd8102b

Browse files
michael-hawkerArlodotexe
authored andcommitted
Fix namespace to align with controls xmlns schema we use for SettingsExpanderSample
1 parent 0e37a77 commit bd8102b

File tree

1 file changed

+29
-29
lines changed

1 file changed

+29
-29
lines changed
Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,43 @@
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
<Page x:Class="SettingsControlsExperiment.Samples.SettingsExpanderSample"
33
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
44
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
5+
xmlns:controls="using:CommunityToolkit.WinUI.Controls"
56
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
6-
xmlns:local="using:CommunityToolkit.WinUI.Controls"
77
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
88
xmlns:ui="using:CommunityToolkit.WinUI"
99
mc:Ignorable="d">
1010

11-
<local:SettingsExpander x:Name="settingsCard"
12-
VerticalAlignment="Top"
13-
Description="The SettingsExpander has the same properties as a Card, and you can set SettingsCard as part of the Items collection."
14-
Header="SettingsExpander"
15-
HeaderIcon="{ui:FontIcon Glyph=&#xE91B;}"
16-
IsEnabled="{x:Bind IsCardEnabled, Mode=OneWay}"
17-
IsExpanded="{x:Bind IsCardExpanded, Mode=OneWay}">
11+
<controls:SettingsExpander x:Name="settingsCard"
12+
VerticalAlignment="Top"
13+
Description="The SettingsExpander has the same properties as a Card, and you can set SettingsCard as part of the Items collection."
14+
Header="SettingsExpander"
15+
HeaderIcon="{ui:FontIcon Glyph=&#xE91B;}"
16+
IsEnabled="{x:Bind IsCardEnabled, Mode=OneWay}"
17+
IsExpanded="{x:Bind IsCardExpanded, Mode=OneWay}">
1818
<!-- TODO: This should be TwoWay bound but throws compile error in Uno. -->
1919
<ComboBox SelectedIndex="0">
2020
<ComboBoxItem>Option 1</ComboBoxItem>
2121
<ComboBoxItem>Option 2</ComboBoxItem>
2222
<ComboBoxItem>Option 3</ComboBoxItem>
2323
</ComboBox>
2424

25-
<local:SettingsExpander.Items>
26-
<local:SettingsCard Header="A basic SettingsCard within an SettingsExpander">
25+
<controls:SettingsExpander.Items>
26+
<controls:SettingsCard Header="A basic SettingsCard within an SettingsExpander">
2727
<Button Content="Button" />
28-
</local:SettingsCard>
29-
<local:SettingsCard Description="SettingsCard within an Expander can be made clickable too!"
30-
Header="This item can be clicked"
31-
IsClickEnabled="True" />
28+
</controls:SettingsCard>
29+
<controls:SettingsCard Description="SettingsCard within an Expander can be made clickable too!"
30+
Header="This item can be clicked"
31+
IsClickEnabled="True" />
3232

33-
<local:SettingsCard ContentAlignment="Left">
33+
<controls:SettingsCard ContentAlignment="Left">
3434
<CheckBox Content="Here the ContentAlignment is set to Left. This is great for e.g. CheckBoxes or RadioButtons." />
35-
</local:SettingsCard>
35+
</controls:SettingsCard>
3636

37-
<local:SettingsCard HorizontalContentAlignment="Left"
38-
ContentAlignment="Vertical"
39-
Description="You can also align your content vertically. Make sure to set the HorizontalAlignment to Left when you do!"
40-
Header="Vertically aligned">
37+
<controls:SettingsCard HorizontalContentAlignment="Left"
38+
ContentAlignment="Vertical"
39+
Description="You can also align your content vertically. Make sure to set the HorizontalAlignment to Left when you do!"
40+
Header="Vertically aligned">
4141
<GridView SelectedIndex="1">
4242
<GridViewItem>
4343
<Border Width="64"
@@ -64,13 +64,13 @@
6464
CornerRadius="4" />
6565
</GridViewItem>
6666
</GridView>
67-
</local:SettingsCard>
68-
<local:SettingsCard Description="You can override the Left indention of a SettingsCard by overriding the SettingsCardLeftIndention"
69-
Header="Customization">
70-
<local:SettingsCard.Resources>
67+
</controls:SettingsCard>
68+
<controls:SettingsCard Description="You can override the Left indention of a SettingsCard by overriding the SettingsCardLeftIndention"
69+
Header="Customization">
70+
<controls:SettingsCard.Resources>
7171
<x:Double x:Key="SettingsCardLeftIndention">40</x:Double>
72-
</local:SettingsCard.Resources>
73-
</local:SettingsCard>
74-
</local:SettingsExpander.Items>
75-
</local:SettingsExpander>
72+
</controls:SettingsCard.Resources>
73+
</controls:SettingsCard>
74+
</controls:SettingsExpander.Items>
75+
</controls:SettingsExpander>
7676
</Page>

0 commit comments

Comments
 (0)