From 819071d88f597a309b29c638a34866bdd2edeb1c Mon Sep 17 00:00:00 2001 From: Niels Laute Date: Wed, 16 Aug 2023 17:05:04 +0200 Subject: [PATCH] Sample tweaks --- .../samples/ClickableSettingsCardSample.xaml | 29 ++++++--------- .../samples/SettingsCardSample.xaml | 14 +++----- .../samples/SettingsControls.Samples.csproj | 4 +++ .../SettingsExpanderItemsSourceSample.xaml | 9 ++--- .../samples/SettingsExpanderSample.xaml | 5 ++- .../samples/SettingsPageExample.xaml | 35 +++++++------------ 6 files changed, 35 insertions(+), 61 deletions(-) diff --git a/components/SettingsControls/samples/ClickableSettingsCardSample.xaml b/components/SettingsControls/samples/ClickableSettingsCardSample.xaml index d70bc4ab..78321fec 100644 --- a/components/SettingsControls/samples/ClickableSettingsCardSample.xaml +++ b/components/SettingsControls/samples/ClickableSettingsCardSample.xaml @@ -5,37 +5,28 @@ xmlns:controls="using:CommunityToolkit.WinUI.Controls" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:ui="using:CommunityToolkit.WinUI" mc:Ignorable="d"> - - - - + IsEnabled="{x:Bind IsCardEnabled, Mode=OneWay}" /> - - - - - - - - + IsEnabled="{x:Bind IsCardEnabled, Mode=OneWay}" /> + - - - - + IsEnabled="{x:Bind IsCardEnabled, Mode=OneWay}" /> diff --git a/components/SettingsControls/samples/SettingsCardSample.xaml b/components/SettingsControls/samples/SettingsCardSample.xaml index 5bd73a02..bc37bce6 100644 --- a/components/SettingsControls/samples/SettingsCardSample.xaml +++ b/components/SettingsControls/samples/SettingsCardSample.xaml @@ -5,15 +5,14 @@ xmlns:controls="using:CommunityToolkit.WinUI.Controls" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:ui="using:CommunityToolkit.WinUI" mc:Ignorable="d"> - - - Option 1 Option 2 @@ -23,11 +22,8 @@ - - - @@ -42,10 +38,8 @@ - - - 800 600 diff --git a/components/SettingsControls/samples/SettingsControls.Samples.csproj b/components/SettingsControls/samples/SettingsControls.Samples.csproj index 99003d24..a75dc396 100644 --- a/components/SettingsControls/samples/SettingsControls.Samples.csproj +++ b/components/SettingsControls/samples/SettingsControls.Samples.csproj @@ -5,4 +5,8 @@ + + + + diff --git a/components/SettingsControls/samples/SettingsExpanderItemsSourceSample.xaml b/components/SettingsControls/samples/SettingsExpanderItemsSourceSample.xaml index f00c82e2..75ca3e88 100644 --- a/components/SettingsControls/samples/SettingsExpanderItemsSourceSample.xaml +++ b/components/SettingsControls/samples/SettingsExpanderItemsSourceSample.xaml @@ -7,6 +7,7 @@ xmlns:local="using:SettingsControlsExperiment.Samples" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:muxc="using:Microsoft.UI.Xaml.Controls" + xmlns:ui="using:CommunityToolkit.WinUI" mc:Ignorable="d"> @@ -18,10 +19,8 @@ - - - - - - diff --git a/components/SettingsControls/samples/SettingsExpanderSample.xaml b/components/SettingsControls/samples/SettingsExpanderSample.xaml index ab620060..a4d72d4e 100644 --- a/components/SettingsControls/samples/SettingsExpanderSample.xaml +++ b/components/SettingsControls/samples/SettingsExpanderSample.xaml @@ -5,17 +5,16 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:local="using:CommunityToolkit.WinUI.Controls" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:ui="using:CommunityToolkit.WinUI" mc:Ignorable="d"> - - - Option 1 Option 2 diff --git a/components/SettingsControls/samples/SettingsPageExample.xaml b/components/SettingsControls/samples/SettingsPageExample.xaml index bbbb37f1..1dad1eb0 100644 --- a/components/SettingsControls/samples/SettingsPageExample.xaml +++ b/components/SettingsControls/samples/SettingsPageExample.xaml @@ -5,6 +5,7 @@ xmlns:controls="using:CommunityToolkit.WinUI.Controls" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" + xmlns:ui="using:CommunityToolkit.WinUI" xmlns:win="http://schemas.microsoft.com/winfx/2006/xaml/presentation" mc:Ignorable="d"> @@ -34,18 +35,14 @@ - - - + Header="This is the Header" + HeaderIcon="{ui:FontIcon Glyph=}"> - - - + Header="SettingsExpander" + HeaderIcon="{ui:FontIcon Glyph=}">