Ensure the flyout respects the given RequestedTheme... although it doesn't seem to be picking up the theme changes from Windows user settings just yet...

This commit is contained in:
Daniel Clark
2021-02-07 11:22:26 +00:00
parent f4556c8314
commit 61305ca00f
5 changed files with 37 additions and 28 deletions
@@ -6,5 +6,18 @@
{
InitializeComponent();
}
private void ToggleSwitch_Toggled(object sender, Windows.UI.Xaml.RoutedEventArgs e)
{
if (test.IsOn)
{
this.RequestedTheme = Windows.UI.Xaml.ElementTheme.Dark;
}
else
{
this.RequestedTheme = Windows.UI.Xaml.ElementTheme.Light;
}
}
}
}