Files
NotificationFlyout/samples/NotificationFlyoutSample/Shell.xaml.cs
T
2021-02-15 00:06:51 +00:00

34 lines
1.1 KiB
C#

using System;
using System.Threading.Tasks;
using Windows.Media.Control;
namespace NotificationFlyoutSample
{
public sealed partial class Shell
{
public Shell()
{
InitializeComponent();
}
private void MenuFlyoutItem_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e)
{
var app = GetApplication();
app.Exit();
}
private async void Button_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e)
{
//var gsmtcsm = await GetSystemMediaTransportControlsSessionManager();
//var mediaProperties = await GetMediaProperties(gsmtcsm.GetCurrentSession());
}
//private static async Task<GlobalSystemMediaTransportControlsSessionManager> GetSystemMediaTransportControlsSessionManager() =>
//await GlobalSystemMediaTransportControlsSessionManager.RequestAsync();
//private static async Task<GlobalSystemMediaTransportControlsSessionMediaProperties> GetMediaProperties(GlobalSystemMediaTransportControlsSession session) =>
// await session.TryGetMediaPropertiesAsync();
}
}