Animation of Expander expand / collapse programmatically
-
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
-
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
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-->**
-
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-->**