Is there a way I can change the icon of the expander to +/- with the color white as the foreground color? I've been looking everywhere but cant find a simple solution. Or better yet, how do I change the color of the expander icon to white? My background is a dark color, so this is why I'm asking.
Asked
Active
Viewed 2.5k times
2 Answers
6
You will need to create a custom control template, see this CodeProject article: http://www.codeproject.com/Articles/248112/Templating-WPF-Expander-Control

CodingGorilla
- 19,612
- 4
- 45
- 65
2
You need to change the Template
, you can base it on the existing template though.
-
so even if i just wanted to change the foreground of the icon to white, i would still have to change the whole template? isnt there an easier way of doing to without having to change the template? – Calvin Jun 19 '12 at 12:25
-
There is no easier way, the icon is part of the template and it is not bound to any properties you can change, hence you need to replace the whole template. (Unless you want to modify the controls at runtime which is a ***very*** bad idea as the themes are OS dependent) – H.B. Jun 19 '12 at 12:39