diff --git a/samples/ControlCatalog/App.xaml.cs b/samples/ControlCatalog/App.xaml.cs index d4a4d0a209..2976e20120 100644 --- a/samples/ControlCatalog/App.xaml.cs +++ b/samples/ControlCatalog/App.xaml.cs @@ -37,7 +37,7 @@ namespace ControlCatalog _colorPickerFluent = (IStyle)Resources["ColorPickerFluent"]!; _colorPickerSimple = (IStyle)Resources["ColorPickerSimple"]!; - SetCatalogThemes(CatalogTheme.Fluent2); + SetCatalogThemes(CatalogTheme.Fluent2, skipWindowCreation: true); } public override void OnFrameworkInitializationCompleted() @@ -108,12 +108,12 @@ namespace ControlCatalog private CatalogTheme _prevTheme; public static CatalogTheme CurrentTheme => ((App)Current!)._prevTheme; - public static void SetCatalogThemes(CatalogTheme theme) + public static void SetCatalogThemes(CatalogTheme theme, bool skipWindowCreation = false) { var app = (App)Current!; var prevTheme = app._prevTheme; app._prevTheme = theme; - var shouldReopenWindow = prevTheme != theme; + var shouldReopenWindow = prevTheme != theme && !skipWindowCreation; if (app._themeStylesContainer.Count == 0) { diff --git a/samples/ControlCatalog/Pages/ButtonSpinnerPage.xaml b/samples/ControlCatalog/Pages/ButtonSpinnerPage.xaml index c21a772c2a..d3c0caedda 100644 --- a/samples/ControlCatalog/Pages/ButtonSpinnerPage.xaml +++ b/samples/ControlCatalog/Pages/ButtonSpinnerPage.xaml @@ -15,6 +15,11 @@ ShowButtonSpinner="{Binding #showSpinCheck.IsChecked}"> + + + diff --git a/samples/ControlCatalog/Pages/CarouselPage.xaml b/samples/ControlCatalog/Pages/CarouselPage.xaml index bdb40b9038..7674c6b277 100644 --- a/samples/ControlCatalog/Pages/CarouselPage.xaml +++ b/samples/ControlCatalog/Pages/CarouselPage.xaml @@ -9,7 +9,7 @@ MaxWidth="760" HorizontalAlignment="Stretch" Margin="0 16 0 0"> @@ -44,7 +44,7 @@ diff --git a/samples/ControlCatalog/Pages/NumericUpDownPage.xaml b/samples/ControlCatalog/Pages/NumericUpDownPage.xaml index dcc84c3ae8..267b48315e 100644 --- a/samples/ControlCatalog/Pages/NumericUpDownPage.xaml +++ b/samples/ControlCatalog/Pages/NumericUpDownPage.xaml @@ -123,6 +123,15 @@ PlaceholderForeground="Orange"/> + + +