Gilad Naaman
Gilad Naaman

Reputation: 6550

How to collapse an expander

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

Answers (1)

Liz
Liz

Reputation: 8968

You should just be able to set the IsExpanded property on the expander control.

expander.IsExpanded = false;

Upvotes: 2

Related Questions