Click here to Skip to main content
15,667,864 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:

How to change default icon of an expander. Like treeview icon... please help me....
Sergey Alexandrovich Kryukov 22-May-13 0:24am    
There is no such thing as "treeview icon". Controls normally don't use icons, they use either bitmaps, or, with WPF, vector graphics (XAML). What is "default icon"? Do you mean small up/down arrow image in a round border?
suganyass 22-May-13 0:31am    
yes i mentioned that up/down arrow image as default icon... I need to replace that with treeView icon(that triangular arrow image).
Sergey Alexandrovich Kryukov 22-May-13 0:33am    
Only it is not an icon...
suganyass 22-May-13 0:35am    
Ok how to change that image....
Sergey Alexandrovich Kryukov 22-May-13 0:39am    
Please see my answer...

Please see this article:[^].

It explains it in detail; they only problem that it provides a lot more customization feature, but you should be able to get the idea. Customization of the arrow bitmap is only one small part of the article.

Share this answer
I think you are going to have to create a template for the control and set this in the template.
Share this answer
suganyass 31-May-13 9:11am    
yeah... but i dnt know how to create template for that control. pls help me..
Francisco T. Chavez 5-Jun-13 18:17pm    
If the issue is that you don't know anything about control template's then I'd advise reading this article as a place to start.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900