diff --git a/WindowExample/MainWindow.xaml b/WindowExample/MainWindow.xaml
index fb1de52f..b6cf7a35 100644
--- a/WindowExample/MainWindow.xaml
+++ b/WindowExample/MainWindow.xaml
@@ -35,6 +35,7 @@
+
@@ -54,20 +55,29 @@
-
+
-
+
+
+
+
+
+
+
+
+
+
-
+
diff --git a/WindowExample/MainWindow.xaml.cs b/WindowExample/MainWindow.xaml.cs
index e5cdc63a..7f190080 100644
--- a/WindowExample/MainWindow.xaml.cs
+++ b/WindowExample/MainWindow.xaml.cs
@@ -123,5 +123,21 @@ private void TitleBarButtonAvailabilitySelector_SelectionChanged(object sender,
}
}
}
+
+ private void RadioButton_CornerStyle_Click(object sender, RoutedEventArgs e)
+ {
+ if (sender is RadioButton btn && btn.Content is string val)
+ {
+ try
+ {
+ WindowHelper.SetCornerStyle(this, (WindowCornerStyle)Enum.Parse(typeof(WindowCornerStyle), val));
+ }
+ catch (Exception ex)
+ {
+ MessageBox.Show(ex.ToString());
+ }
+ }
+
+ }
}
}
\ No newline at end of file
diff --git a/source/samples/WpfApp1/MainWindow.xaml b/source/samples/WpfApp1/MainWindow.xaml
index 9120b20b..ec04cdf7 100644
--- a/source/samples/WpfApp1/MainWindow.xaml
+++ b/source/samples/WpfApp1/MainWindow.xaml
@@ -9,7 +9,8 @@
ResizeMode="CanMinimize"
ui:ThemeManager.IsThemeAware="True" ui:TitleBar.Height="40"
ui:TitleBar.ExtendViewIntoTitleBar="False" ui:WindowHelper.SystemBackdropType="Acrylic"
- ui:TitleBar.ButtonCloseAvailability="Collapsed"
+ ui:TitleBar.ButtonCloseAvailability="Enabled"
+ ui:TitleBar.ButtonMaximizeAvailability="Collapsed"
ui:WindowHelper.UseModernWindowStyle="True"
ui:TitleBar.IsBackButtonVisible="False"
ui:WindowHelper.CornerStyle="DoNotRound" Loaded="Window_Loaded">
@@ -157,6 +158,6 @@
-
+