From f19a34d50c2a56ecfde3d51fcc5b6c28d457115d Mon Sep 17 00:00:00 2001 From: Stefan Markovic <57057282+stefansjfw@users.noreply.github.com> Date: Thu, 12 Dec 2024 15:53:16 +0100 Subject: [PATCH] [FZEditor]Fix Create new layout dialog radio buttons IsChecked values (#36320) --- .../fancyzones/editor/FancyZonesEditor/MainWindow.xaml | 4 ++-- .../fancyzones/editor/FancyZonesEditor/MainWindow.xaml.cs | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/modules/fancyzones/editor/FancyZonesEditor/MainWindow.xaml b/src/modules/fancyzones/editor/FancyZonesEditor/MainWindow.xaml index 86b65e9ed224..8510511ec615 100644 --- a/src/modules/fancyzones/editor/FancyZonesEditor/MainWindow.xaml +++ b/src/modules/fancyzones/editor/FancyZonesEditor/MainWindow.xaml @@ -819,7 +819,7 @@ AutomationProperties.HelpText="{x:Static props:Resources.Layout_Grid_Description}" AutomationProperties.Name="{x:Static props:Resources.Layout_Grid_Title}" GroupName="LayoutTypeGroup" - IsChecked="True" + IsChecked="False" Style="{StaticResource LayoutTypeRadioButtonStyle}"> @@ -857,7 +857,7 @@ AutomationProperties.HelpText="{x:Static props:Resources.Layout_Canvas_Description}" AutomationProperties.Name="{x:Static props:Resources.Layout_Canvas_Title}" GroupName="LayoutTypeGroup" - IsChecked="True" + IsChecked="False" Style="{StaticResource LayoutTypeRadioButtonStyle}"> diff --git a/src/modules/fancyzones/editor/FancyZonesEditor/MainWindow.xaml.cs b/src/modules/fancyzones/editor/FancyZonesEditor/MainWindow.xaml.cs index bd06bdd26c1a..a56705ca7a28 100644 --- a/src/modules/fancyzones/editor/FancyZonesEditor/MainWindow.xaml.cs +++ b/src/modules/fancyzones/editor/FancyZonesEditor/MainWindow.xaml.cs @@ -226,7 +226,9 @@ private async void NewLayoutButton_Click(object sender, RoutedEventArgs e) } LayoutNameText.Text = defaultNamePrefix + " " + (++maxCustomIndex); + GridLayoutRadioButton.IsChecked = true; + CanvasLayoutRadioButton.IsChecked = false; GridLayoutRadioButton.Focus(); await NewLayoutDialog.ShowAsync(); }