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:
@@ -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;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user