Update ContextMenu sample

This commit is contained in:
Daniel Clark
2021-02-11 01:02:44 +00:00
parent c01af45f7f
commit 50d817a658
2 changed files with 11 additions and 2 deletions
@@ -7,7 +7,7 @@
IconSource="/Assets/Icon.ico"
LightIconSource="/Assets/Icon-Light.ico">
<controls:NotificationFlyout.ContextMenuItems>
<MenuFlyoutItem Text="Close" />
<MenuFlyoutItem Click="MenuFlyoutItem_Click" Text="Click me" />
</controls:NotificationFlyout.ContextMenuItems>
<StackPanel Margin="24">
<ComboBox
@@ -1,4 +1,7 @@
namespace NotificationFlyoutSample
using Windows.UI.Popups;
using Windows.UI.Xaml;
namespace NotificationFlyoutSample
{
public sealed partial class Shell
{
@@ -22,5 +25,11 @@
break;
}
}
private void MenuFlyoutItem_Click(object sender, Windows.UI.Xaml.RoutedEventArgs e)
{
MessageDialog d = new MessageDialog("Hello from context menu!");
d.ShowAsync();
}
}
}