Files
NotificationFlyout/NotificationFlyout.Sample.Uwp/NotificationFlyoutPresenter.xaml.cs
T
2021-02-09 12:15:57 +00:00

32 lines
787 B
C#

namespace NotificationFlyout.Sample.Uwp
{
public sealed partial class NotificationFlyoutPresenter
{
public NotificationFlyoutPresenter()
{
InitializeComponent();
}
private void test_SelectionChanged(object sender, Windows.UI.Xaml.Controls.SelectionChangedEventArgs e)
{
if (test.SelectedIndex == 0)
{
this.RequestedTheme = Windows.UI.Xaml.ElementTheme.Default;
}
if (test.SelectedIndex == 1)
{
this.RequestedTheme = Windows.UI.Xaml.ElementTheme.Dark;
}
if (test.SelectedIndex == 2)
{
this.RequestedTheme = Windows.UI.Xaml.ElementTheme.Light;
}
}
}
}