Prathap
Prathap

Reputation: 49

How to change the appearance of expander icon wpf

I'm trying to create a user control, using the expander control and I want to change only the appearance of expander icon.

could someone please tell me how to do.

Upvotes: 0

Views: 2559

Answers (1)

Gopichandar
Gopichandar

Reputation: 2842

There is not direct way to do that. You need to write the whole Template for the control.

As mentioned by @Noam, the Codeproject Article is really good to go. But, the problem is, it wont work for different ExpandDirection of Expander. I have modified a bit to make it work on all directions. You can make use of the following if needed.

Expander with animation that support all direction

Also, you can modify the Arrow icon of Expander as you like.

Upvotes: 2

Related Questions