Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I wondering to make a ComboBoxTreeView,I've done it in main xaml:using the ControlTemplate,and change Content="{TemplateBinding SelectionBoxItem}"
into Content="{Binding SelectedItem.Header,ElementName=TreeView1}".
However,when I write it into ResourceDictionary, it not work. And,I don't know Content,ContentTemplate,and ContentTemplateSelector how to Binding in ResourceDictionary.
Posted
Updated 30-Nov-12 15:22pm
v3
Comments
Programm3r 3-Dec-12 8:51am    
Hi - please take into consideration the function of a ResourceDictionary: Provides a hash table / dictionary implementation that contains WPF resources used by components and other elements of a WPF application. Please refer to the following link: http://msdn.microsoft.com/en-us/library/system.windows.resourcedictionary.aspx
yaoyedemofashi 4-Dec-12 22:14pm    
I had studied it after your comment,but...I don't know yet...I'm too stupied... And,Thanks for your comments.
Programm3r 5-Dec-12 0:36am    
What I was trying to say is, that according to my knowledge the resource dictionary is not the place to put such a control. If the idea is to reuse the Content control, then I would write a new user control, with the content control. That way you could reuse it (if that was the idea).

If this is not the case - please provide some more information as well as code sample.
yaoyedemofashi 5-Dec-12 0:50am    
!...I just using the Template of Blend,and trying to change it into style...I think I gone the wrong direction...I will try to write a new user control,Thanks,my friend,Programm3r.
Programm3r 5-Dec-12 1:08am    
Oki doki - please update this thread if you don't come right.

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