Skip to content

Commit

Permalink
[FZEditor]Fix Create new layout dialog radio buttons IsChecked values (
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansjfw authored Dec 12, 2024
1 parent 05e5e92 commit f19a34d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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}">
<RadioButton.Content>
<Grid Width="420" Margin="4">
Expand Down Expand Up @@ -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}">
<RadioButton.Content>
<Grid Width="420" Margin="4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit f19a34d

Please sign in to comment.