Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Animation of Expander expand / collapse programmatically

Animation of Expander expand / collapse programmatically

Scheduled Pinned Locked Moved WPF
questionwpfcomhelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tronix01
    wrote on last edited by
    #1

    hello once more a post about the expander animation. i found a lot of xaml examples for a animated expander during expand/collapse. like this => http://mattserbinski.com/blog/animating-expander but how can i do that programmatically in codebehind? i have a usercontrol which gets added a dynamic created nested expander control (min. 3 level). i would like to have a "global" animation ( for expand /collapse) for all expander controls inside the usercontrol. how can i solve that ? with a RessourceDictionary ? thanks for your help

    A 1 Reply Last reply
    0
    • T tronix01

      hello once more a post about the expander animation. i found a lot of xaml examples for a animated expander during expand/collapse. like this => http://mattserbinski.com/blog/animating-expander but how can i do that programmatically in codebehind? i have a usercontrol which gets added a dynamic created nested expander control (min. 3 level). i would like to have a "global" animation ( for expand /collapse) for all expander controls inside the usercontrol. how can i solve that ? with a RessourceDictionary ? thanks for your help

      A Offline
      A Offline
      Abhishek Sur
      wrote on last edited by
      #2

      Why do you need to do this in codebehind? I dont think it is a good idea to do this in codebehind. Even though you can do that easily using StoryBoard classes.

      tronix01 wrote:

      would like to have a "global" animation ( for expand /collapse) for all expander controls inside the usercontrol.

      Use Style and define the style in App.Xaml. Refer to the style using {StaticResource key} I think you could better read about WPF resources from my articles : http://www.abhisheksur.com/2010/05/new-wpf-learning-series.html[^] I hope these would help you.:rose:

      Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


      Visit My Website-->**

      www.abhisheksur.com

      T 1 Reply Last reply
      0
      • A Abhishek Sur

        Why do you need to do this in codebehind? I dont think it is a good idea to do this in codebehind. Even though you can do that easily using StoryBoard classes.

        tronix01 wrote:

        would like to have a "global" animation ( for expand /collapse) for all expander controls inside the usercontrol.

        Use Style and define the style in App.Xaml. Refer to the style using {StaticResource key} I think you could better read about WPF resources from my articles : http://www.abhisheksur.com/2010/05/new-wpf-learning-series.html[^] I hope these would help you.:rose:

        Abhishek Sur **Don't forget to click "Good Answer" if you like this Solution.


        Visit My Website-->**

        www.abhisheksur.com

        T Offline
        T Offline
        tronix01
        wrote on last edited by
        #3

        you are right. thanks for your reply.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups