WPF手风琴小组项目 [英] WPF Accordion Panel Items

查看:100
本文介绍了WPF手风琴小组项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好



我可以建议我关注以下内容吗?



我正在使用WPF和VS 4.0,我有Accrodian Panel,里面有5个项目,当我点击Item 1时,当我点击Item 2然后项目1和其他项目应该关闭时,其他应该自动关闭。意味着一个项目应该打开。



先谢谢你。

Hi All

Could please suggest me on following ?

I am using WPF with VS 4.0 and I have Accrodian Panel there are 5 Item inside it and when I click on Item 1 then other should be closed automatically when I click Item 2 then Item 1 and other item should be closed. means at a time one item should open.

Thanks you in Advance.

推荐答案

你好

如何将项目添加到面板中?

收集到ItemsSource,还是手动添加代码或XAML?



无论如何,应该可以循环项目并折叠其他项目。

或者如果在实际控制中有一些属性处理它们。

我从来没有使用那个小组所以我不能给出一个好的答案。但我敢打赌,逻辑不应该远离标准ListView或TabPanel中的选定项目。
Hello
How are the items added to the panel?
Collection to ItemsSource, or manually added in code or XAML?

Anyway, there should be possible to loop the items and collaps the other items.
Or if there is some property that handle that in the actual control.
I have never used that panel so I can''t give a good answer. But I bet the logic should not be too far away from selected items in a standard ListView or TabPanel.




WPF工具包中的手风琴
[ ^ ]

本教程可以为您提供帮助。

快乐编码:)

Accordion in WPF Toolkit
[^]
this tutorial can help you.
Happy Coding :)


这篇关于WPF手风琴小组项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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