是否有一个WPF控件,我可以用它来展开/折叠面板(动画)可以用、控件、它来、有一个

2023-09-02 01:54:59 作者:緈諨dě後續

我有一个有很多内容的窗口。我想能够使用的面板分开的内容,并有一个隔板,该用户可以在每个板之间的肘节点击(与移动分离器从左至右的动画,显示出一个部分和隐藏其他) 。想想微软Office(2007),navigation窗格。有没有一种简单的方法来做到这一点?

I have a window that has a lot of content. I'd like to be able to separate the content using panels, and have a separator that the user can click on the toggle between each panel (with an animation that moves the separator from left to right, showing one section and hiding the other). Think of the Microsoft Office (2007) navigation pane. Is there an easy way to accomplish this?

谢谢!

推荐答案

我认为你正在寻找的是一个手风琴的控制,这里是一个后abotu如何从堆栈扩展的构建人控制:

I think what you are looking for is an "Accordion" control, here is a post abotu how to build one from a stack of Expander controls:

http://www.rooijakkers.net/Blog/post/2007/11/WPF-implementation-of-a-basic-Accordion-control.aspx

和为动画来看看在显示来自凯文的袋邻招数控制在 http://j832.com/bagotricks /

And for the animation take a look at the "Reveal" control from Kevin's bag-o-tricks at http://j832.com/bagotricks/

我觉得有更是以示例项目的显示控制动画扩展控件模板。

I think there's even an animated Expander control template based on the Reveal control in the sample project.

 
精彩推荐