Click here to Skip to main content
15,909,440 members
Home / Discussions / WPF
   

WPF

 
Questionhow to draw multi-lines in WPF Pin
Hamed Metalgear6-Dec-11 22:10
Hamed Metalgear6-Dec-11 22:10 
AnswerRe: how to draw multi-lines in WPF Pin
Wayne Gaylard6-Dec-11 22:34
professionalWayne Gaylard6-Dec-11 22:34 
GeneralRe: how to draw multi-lines in WPF Pin
Hamed Metalgear6-Dec-11 22:40
Hamed Metalgear6-Dec-11 22:40 
GeneralRe: how to draw multi-lines in WPF Pin
Wayne Gaylard6-Dec-11 22:44
professionalWayne Gaylard6-Dec-11 22:44 
GeneralRe: how to draw multi-lines in WPF Pin
Hamed Metalgear6-Dec-11 22:46
Hamed Metalgear6-Dec-11 22:46 
GeneralRe: how to draw multi-lines in WPF Pin
Pete O'Hanlon6-Dec-11 23:17
mvePete O'Hanlon6-Dec-11 23:17 
QuestionTreeView Data Template & Binding Question Pin
Kevin Marois6-Dec-11 12:44
professionalKevin Marois6-Dec-11 12:44 
AnswerRe: TreeView Data Template & Binding Question Pin
Mycroft Holmes6-Dec-11 13:52
professionalMycroft Holmes6-Dec-11 13:52 
The target objects need to be the same type. I use a UINode object that has all the properties needed to service a treeview node, Label, Tag and List<uinodes> being the minimum but I have order and image fields as well.

I then load the top nodes with the text I need to see and put the record (folder or file) object into the tag property (which is object).
Then for each top node I load the ChildNodes collection. This is a simple recursive excercise.

When I need to work with the content of the node I check the type of the object in the tag property first.
Never underestimate the power of human stupidity
RAH

GeneralRe: TreeView Data Template & Binding Question Pin
SledgeHammer016-Dec-11 13:55
SledgeHammer016-Dec-11 13:55 
GeneralRe: TreeView Data Template & Binding Question Pin
Mycroft Holmes6-Dec-11 14:00
professionalMycroft Holmes6-Dec-11 14:00 
GeneralRe: TreeView Data Template & Binding Question Pin
SledgeHammer016-Dec-11 14:17
SledgeHammer016-Dec-11 14:17 
GeneralRe: TreeView Data Template & Binding Question Pin
Mycroft Holmes6-Dec-11 14:21
professionalMycroft Holmes6-Dec-11 14:21 
GeneralRe: TreeView Data Template & Binding Question Pin
SledgeHammer016-Dec-11 14:25
SledgeHammer016-Dec-11 14:25 
GeneralRe: TreeView Data Template & Binding Question Pin
Mycroft Holmes6-Dec-11 16:22
professionalMycroft Holmes6-Dec-11 16:22 
GeneralRe: TreeView Data Template & Binding Question Pin
Kevin Marois6-Dec-11 14:08
professionalKevin Marois6-Dec-11 14:08 
GeneralRe: TreeView Data Template & Binding Question Pin
Mycroft Holmes6-Dec-11 14:18
professionalMycroft Holmes6-Dec-11 14:18 
GeneralRe: TreeView Data Template & Binding Question Pin
SledgeHammer016-Dec-11 14:21
SledgeHammer016-Dec-11 14:21 
AnswerRe: TreeView Data Template & Binding Question Pin
SledgeHammer016-Dec-11 13:53
SledgeHammer016-Dec-11 13:53 
GeneralRe: TreeView Data Template & Binding Question Pin
Kevin Marois8-Dec-11 7:12
professionalKevin Marois8-Dec-11 7:12 
AnswerRe: Popup vs Tooltip Pin
Pete O'Hanlon6-Dec-11 4:48
mvePete O'Hanlon6-Dec-11 4:48 
GeneralRe: Popup vs Tooltip Pin
SledgeHammer016-Dec-11 10:42
SledgeHammer016-Dec-11 10:42 
GeneralRe: Popup vs Tooltip Pin
SledgeHammer016-Dec-11 11:35
SledgeHammer016-Dec-11 11:35 
QuestionBest way to save/load data locally. WPF Pin
Paul Harsent5-Dec-11 3:51
Paul Harsent5-Dec-11 3:51 
AnswerRe: Best way to save/load data locally. WPF Pin
Pete O'Hanlon5-Dec-11 4:40
mvePete O'Hanlon5-Dec-11 4:40 
AnswerRe: Best way to save/load data locally. WPF Pin
SledgeHammer015-Dec-11 5:04
SledgeHammer015-Dec-11 5:04 

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.