如何制作手风琴风格的内容持有人UWP [英] How to make an accordion style content holder UWP

查看:81
本文介绍了如何制作手风琴风格的内容持有人UWP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

因此,我正在尝试为uwp应用程序创建手风琴内容持有人。在文档中找不到与我想要达到的目标相似的东西。这是我需要使用stackpanels和codebehiend ect从头开始构建的东西吗,还是有我可以在尚未找到的库中使用的工具?



这里是我想要的例子。当用户单击疫苗名称时,包含有关该疫苗信息的内容框将下拉。如果在扩展时单击它,它将向后滑动并仅再次显示名称。手风琴。



有关该主题的任何建议,教程和文章,将不胜感激。

解决方案


So i am trying to make an accordion content holder for an uwp application. I can't find anything resembling what i want to achive in the documentation. Is this someting i need to build from scratch using stackpanels and codebehiend ect ect, or are there tools I can use within the libary which I havent found yet ?

Here Is an example of what i want. When the users clicks on a vaccine name, a content box containg information about that vaccine will dropdown. And if it is click while expanded, it will slide back up and only display the name again. An accordion.

Any suggestions, tutorials, articles on the subject will be much appreciated. Thanks in advance.

解决方案

There is UWP Community Toolkit available that has an expander control that you may be able to utilize. You can get the code sample from the Windows Store and the source code is on github.

https://blogs.windows.com/buildingapps/2016/08/17/introducing-the-uwp-community-toolkit/#v6cSIzET7QwQOb8O.97

这篇关于如何制作手风琴风格的内容持有人UWP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆