简体   繁体   English

Windows Phone 8-展开菜单列表

[英]Windows Phone 8 - Expandable menu list

I want to create custom Application Bar which when expanded would containts list of items and each item could navigate to other page but item would have arrow too (or some icon) and after tap it could expand to subitems which goes to different pages. 我想创建自定义应用程序栏,展开时将包含项目列表,每个项目都可以导航到其他页面,但是项目也具有箭头(或某些图标),点击后可以扩展到子项目,该子项目可以转到不同的页面。

In recent times I didn't do much programming for Windows Phone. 最近,我没有为Windows Phone进行太多编程。 I know that there was ExpanderView in Toolkit but I was searching and it's not actual. 我知道工具包中有ExpanderView,但我正在搜索,但这不是实际的。 So I am asking which is best way to do this in Windows Phone 8(.1)? 所以我问在Windows Phone 8(.1)中哪种最佳方法? When control collapsed it should look like ApplicationBar but when expanded it would contains list of items which could be expanded too but it also could be navigating to another pages. 当控件折叠时,其外观应类似于ApplicationBar,但在展开时,它将包含可以扩展的项目列表,但也可以导航到其他页面。 Thanks for help 感谢帮助

Sounds like you'd need to develop your own XAML control to achieve this. 听起来您需要开发自己的XAML控件来实现此目的。 I don't think there's anything built in to the framework that does exactly what you're after. 我认为框架中没有任何功能可以完全满足您的需求。

An ExpanderControl is implemented from Bewise . Bewise实现ExpanderControl。 You can make use of it and build a custom app bar. 您可以利用它并构建一个自定义应用栏。

I have recently added an ExpandPanel for Windows/Windows Phone 8.1+ in GitHub . 我最近在GitHub中添加了适用于Windows / Windows Phone 8.1+的ExpandPanel Do check it out. 请检查一下。 All you need to do is include it in your project as specified in the readme file. 您所需要做的就是按照自述文件中的说明将其包含在项目中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM