Reputation: 6550
C#-WPF I'm trying to collapse an expander in a function, but I can't seem to find any method that does that. Is there any way?
Upvotes: 0
Views: 459
Reputation: 8968
You should just be able to set the IsExpanded property on the expander control.
expander.IsExpanded = false;
Upvotes: 2