Update ContextMenu sample
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user