Is there a WPF control I can use to expand/collapse panels (animated)

后端 未结 3 1220
Happy的楠姐
Happy的楠姐 2020-12-08 22:01

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

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-08 23:04

    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

    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.

提交回复
热议问题