[UWP]将上下文菜单添加到Windows手机上下文菜单 [英] [UWP]Adding context menu to windows phone context menu
问题描述
是否可以在Windows 10手机上下文菜单中添加上下文菜单?
Is it possible to add context menu to windows 10 phone context menu?
推荐答案
是的,您可以使用此处所述的附加弹出按钮:
Yes, you could use an attached flyout as described here:
在Windows Phone上使用MenuFlyout显示上下文菜单:
http: //igrali.com/2014/04/29/show-context-menu-using-menuflyout-windows-phone-8-1/
如何在ListView项目的Windows 10 UWP中添加上下文菜单?:
http://stackoverflow.com/questions/37656847/how-to-add-context-menu-in-windows-10-uwp-on-listview-item
在Windows 10周年纪念版中,您可以在任何UIElement上设置ContextFlyout属性:
http://stackoverflow.com/questions/38631968/how-use-contextflyout-in-a-stackpanel-in-uwp
https://msdn.microsoft。 com / zh-CN / library / windows / apps / windows.ui.xaml.uielement.contextflyout
From the Anniversary version of Windows 10, there is a ContextFlyout property that you can set on any UIElement:
http://stackoverflow.com/questions/38631968/how-use-contextflyout-in-a-stackpanel-in-uwp
https://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.uielement.contextflyout
希望有所帮助。
Hope that helps.
请记住通过将有用的帖子标记为答案来关闭您的主题,然后如果您有新问题则启动新主题。请不要在同一个帖子中提出几个问题。
Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question. Please don't ask several questions in the same thread.
这篇关于[UWP]将上下文菜单添加到Windows手机上下文菜单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!