Click here to Skip to main content
15,922,650 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: TreeViewItem Binding Doubt Pin
AmitDey7-Jan-11 6:17
AmitDey7-Jan-11 6:17 
GeneralRe: TreeViewItem Binding Doubt Pin
SledgeHammer017-Jan-11 7:55
SledgeHammer017-Jan-11 7:55 
If you use data binding, users can still add / delete new nodes. You just add / remove them from the data bound collection and the UI will auto-magically update.

I believe your other issue is that you are not specifying TargetType on the DataTemplate. If you are getting TestApplication.Item, its because the TreeViewItem is not picking up the template.

Also, your Item class is not implementing INotifyPropertyChanged, so none of your setters will work properly.
AnswerRe: TreeViewItem Binding Doubt Pin
Ian Shlasko7-Jan-11 9:03
Ian Shlasko7-Jan-11 9:03 
Questionsilverlight 4- which rows are updated with checkbox. [modified] Pin
arkiboys5-Jan-11 22:59
arkiboys5-Jan-11 22:59 
AnswerRe: silverlight 4- which rows are updated with checkbox. Pin
Pete O'Hanlon5-Jan-11 23:38
mvePete O'Hanlon5-Jan-11 23:38 
GeneralRe: silverlight 4- which rows are updated with checkbox. Pin
arkiboys5-Jan-11 23:43
arkiboys5-Jan-11 23:43 
QuestionParent, Child & GrandChild binding in WPF & Silverlight Pin
Chazzysb5-Jan-11 4:33
Chazzysb5-Jan-11 4:33 
AnswerRe: Parent, Child & GrandChild binding in WPF & Silverlight Pin
Abhinav S6-Jan-11 1:08
Abhinav S6-Jan-11 1:08 
GeneralRe: Parent, Child & GrandChild binding in WPF & Silverlight Pin
Chazzysb6-Jan-11 3:55
Chazzysb6-Jan-11 3:55 
QuestionHow can I create layout in the following way? Pin
Pankaj Nikam4-Jan-11 23:36
professionalPankaj Nikam4-Jan-11 23:36 
AnswerRe: How can I create layout in the following way? Pin
#realJSOP6-Jan-11 2:16
professional#realJSOP6-Jan-11 2:16 
GeneralRe: How can I create layout in the following way? Pin
mbcrump12-Jan-11 4:34
mentormbcrump12-Jan-11 4:34 
QuestionValidation for Duplication of Data by using Identifier name Pin
Rocky234-Jan-11 22:42
Rocky234-Jan-11 22:42 
AnswerRe: Validation for Duplication of Data by using Identifier name Pin
Pete O'Hanlon4-Jan-11 23:34
mvePete O'Hanlon4-Jan-11 23:34 
GeneralRe: Validation for Duplication of Data by using Identifier name Pin
Rocky234-Jan-11 23:49
Rocky234-Jan-11 23:49 
GeneralRe: Validation for Duplication of Data by using Identifier name Pin
Pete O'Hanlon5-Jan-11 0:41
mvePete O'Hanlon5-Jan-11 0:41 
Questionhow to export the WindowsFormsHost content in to pdf formate Pin
Member 41595674-Jan-11 20:18
Member 41595674-Jan-11 20:18 
Questionhow to generate tree view in MVVM- silverlight Pin
silverlightnewbee4-Jan-11 17:51
silverlightnewbee4-Jan-11 17:51 
AnswerRe: how to generate tree view in MVVM- silverlight Pin
Abhinav S4-Jan-11 18:30
Abhinav S4-Jan-11 18:30 
QuestionWCF Service and event [modified] Pin
CrafterIt4-Jan-11 0:03
CrafterIt4-Jan-11 0:03 
AnswerRe: WCF Service and event Pin
Abhinav S4-Jan-11 0:30
Abhinav S4-Jan-11 0:30 
GeneralRe: WCF Service and event Pin
CrafterIt4-Jan-11 2:09
CrafterIt4-Jan-11 2:09 
AnswerRe: WCF Service and event Pin
Abhinav S4-Jan-11 18:33
Abhinav S4-Jan-11 18:33 
GeneralRe: WCF Service and event Pin
CrafterIt4-Jan-11 20:39
CrafterIt4-Jan-11 20:39 
Questiontreeview- MVVM- how to fire a command on selectedItemChanged Pin
silverlightnewbee3-Jan-11 2:12
silverlightnewbee3-Jan-11 2:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.