Xamarin Form:汉堡中的下拉菜单
Xamarin Form: Dropdown menu in Hamburger
有谁知道我是否可以在 Xamarin Form 的 Hamburger 中创建下拉菜单?
下拉菜单应该是这样的。请帮助我谢谢。
dropdown menu in Hamburger
您可以使用 Xamarin.community-toolkit 中的 Expander
,但请注意,目前:
The Expander control is known to show unwanted behavior when used in a ListView or CollectionView. At this time we recommend not using a Expander in one of these controls.
这是您要遵循的 the issue,因为您可能会在 ListView
或 CollectionView
数据模板中使用它。
另外Dynamically create list of FlyoutItem in Shell?
有谁知道我是否可以在 Xamarin Form 的 Hamburger 中创建下拉菜单?
下拉菜单应该是这样的。请帮助我谢谢。 dropdown menu in Hamburger
您可以使用 Xamarin.community-toolkit 中的 Expander
,但请注意,目前:
The Expander control is known to show unwanted behavior when used in a ListView or CollectionView. At this time we recommend not using a Expander in one of these controls.
这是您要遵循的 the issue,因为您可能会在 ListView
或 CollectionView
数据模板中使用它。
另外Dynamically create list of FlyoutItem in Shell?