Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Expanding/collapsing a WPF Expander

Tags:

wpf

expander

How to expand/collapse a WPF Expander in code? I need to do it in order to initialize a control in it.

like image 598
relapse Avatar asked Jan 17 '12 08:01

relapse


1 Answers

Use the IsExpanded property, set it to true for making the content visible:

myExpander.IsExpanded = true;

Set it to false to collapse the expander.

like image 54
VSS Avatar answered Oct 07 '22 00:10

VSS