Update ContextMenu sample
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
IconSource="/Assets/Icon.ico"
|
IconSource="/Assets/Icon.ico"
|
||||||
LightIconSource="/Assets/Icon-Light.ico">
|
LightIconSource="/Assets/Icon-Light.ico">
|
||||||
<controls:NotificationFlyout.ContextMenuItems>
|
<controls:NotificationFlyout.ContextMenuItems>
|
||||||
<MenuFlyoutItem Text="Close" />
|
<MenuFlyoutItem Click="MenuFlyoutItem_Click" Text="Click me" />
|
||||||
</controls:NotificationFlyout.ContextMenuItems>
|
</controls:NotificationFlyout.ContextMenuItems>
|
||||||
<StackPanel Margin="24">
|
<StackPanel Margin="24">
|
||||||
<ComboBox
|
<ComboBox
|
||||||
|
|||||||
@@ -1,4 +1,7 @@
|
|||||||
namespace NotificationFlyoutSample
|
using Windows.UI.Popups;
|
||||||
|
using Windows.UI.Xaml;
|
||||||
|
|
||||||
|
namespace NotificationFlyoutSample
|
||||||
{
|
{
|
||||||
public sealed partial class Shell
|
public sealed partial class Shell
|
||||||
{
|
{
|
||||||
@@ -22,5 +25,11 @@
|
|||||||
break;
|
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