Xamarin.forms中的AppShell中的可扩展菜单项
I would like to add expander menu items in the appshell menu as below
I could not find any example for it. Is there a way to implement it? i think that, somehow I have to customise the template
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Xamarin Shell还没有此功能,您可以尝试使用“ flyoutdisplayoptions =” asmultipleItems“” ,代码类似:
这是通过更改shellcontent的可见性来实现Similiar feation <。 a href =“ https://stackoverflow.com/questions/68219789/is-is-it-possible-to-possible-to-add-sub-menus-inside-ineside-a-single-menu-inu-inu-inu-inu-inu-inu-inu- at-runtime-in-runtime-in-shell”>可以在运行时在外壳中的单个菜单项中添加子菜单?
Xamarin shell not have this feature yet, you can try to use "FlyoutDisplayOptions="AsMultipleItems"" though,code like:
And here is a workaround through changing the visibility of the shellcontent to achieve the similiar feature Is it possible to add sub-menus inside a single menu item at runtime in Shell?
您可以从
Xamarin社区Toolkit
中使用expander
并自己制作。这是一个小例子,如何使用
https:// .microsoft.com/en-us/xamarin/community-toolkit/views/expander
” src =“ https://i.sstatic.net/b23vp.gif” alt =“在此处输入图像说明”>
You can use the
Expander
fromXamarin Community Toolkit
and make your own .This is a small example how to use it
https://learn.microsoft.com/en-us/xamarin/community-toolkit/views/expander