Click here to Skip to main content
12,244,103 members (51,308 online)

Silverlight / WPF

 
GeneralRe: WPF Tab Item Close Button Pin
SledgeHammer012-Feb-13 19:25
memberSledgeHammer012-Feb-13 19:25 
QuestionCustom Control Template for beginners Pin
jeffdavis870329-Jan-13 10:12
memberjeffdavis870329-Jan-13 10:12 
AnswerRe: Custom Control Template for beginners Pin
SledgeHammer0129-Jan-13 12:32
memberSledgeHammer0129-Jan-13 12:32 
GeneralRe: Custom Control Template for beginners Pin
jeffdavis870329-Jan-13 13:10
memberjeffdavis870329-Jan-13 13:10 
GeneralRe: Custom Control Template for beginners Pin
SledgeHammer0129-Jan-13 13:46
memberSledgeHammer0129-Jan-13 13:46 
GeneralTreeview Selection Pin
vijilvs11629-Jan-13 0:03
membervijilvs11629-Jan-13 0:03 
QuestionProblem With TreeViewItem Tooltip Pin
Kevin Marois26-Jan-13 16:39
memberKevin Marois26-Jan-13 16:39 
GeneralRe: Problem With TreeViewItem Tooltip Pin
Thomas Duwe29-Jan-13 2:46
memberThomas Duwe29-Jan-13 2:46 
Hi Kevin,

what is the DataContext of the ToolTip?
Because the bindings look at e.g. DataContext.ToolTipHeader.

Have a look at what Karl Shifflett did here: http://karlshifflett.wordpress.com/2007/12/29/wpf-sample-series-data-binding-in-tooltip/[^]

If you change <controls:TreeViewEx.ToolTip> to:

<controls:TreeViewEx.ToolTip>
  <ToolTip DataContext="{Binding Path=PlacementTarget, RelativeSource={RelativeSource Self}}">
    <Grid></Grid>
  </ToolTip>
</controls:TreeViewEx.ToolTip>

And change the binding of the textbox to e.g. Text="{Binding SelectedItemEx.ToolTipHeader}"
then it should work, if SelectedItemEx has the property ToolTipHeader.

But you realize that you define a tooltip for the whole treeview control and not for each treeview node, right?

Of course, if the tooltip has already as datacontext your viewmodel then Text="{Binding SelectedTreeNode.ToolTipHeader}"
should work too (without setting the ToolTip DatContext=...) stuff.

Bye,

Thomas.
QuestionHow to get a value from treeview. Pin
boryborawski26-Jan-13 13:06
memberboryborawski26-Jan-13 13:06 
QuestionConstant header and footer Pin
columbos1492726-Jan-13 0:11
membercolumbos1492726-Jan-13 0:11 
AnswerRe: Constant header and footer Pin
Richard MacCutchan26-Jan-13 1:05
mvpRichard MacCutchan26-Jan-13 1:05 
QuestionWPF.MDI Pin
columbos1492725-Jan-13 9:37
membercolumbos1492725-Jan-13 9:37 
AnswerRe: WPF.MDI Pin
Abhishek Pant25-Jan-13 10:29
memberAbhishek Pant25-Jan-13 10:29 
GeneralRe: WPF.MDI Pin
columbos1492725-Jan-13 23:11
membercolumbos1492725-Jan-13 23:11 
GeneralRe: WPF.MDI Pin
Abhishek Pant25-Jan-13 23:33
memberAbhishek Pant25-Jan-13 23:33 
AnswerRe: WPF.MDI Pin
tram730-Nov-13 6:54
membertram730-Nov-13 6:54 
QuestionSilverlight Dispatcher.BeginInvoke not allow thread to run more then one time Pin
Steve Holdorf24-Jan-13 13:13
memberSteve Holdorf24-Jan-13 13:13 
AnswerRe: Silverlight Dispatcher.BeginInvoke not allow thread to run more then one time Pin
db7uk26-Jan-13 14:11
memberdb7uk26-Jan-13 14:11 
GeneralRe: Silverlight Dispatcher.BeginInvoke not allow thread to run more then one time Pin
Steve Holdorf27-Jan-13 4:19
memberSteve Holdorf27-Jan-13 4:19 
GeneralRe: Silverlight Dispatcher.BeginInvoke not allow thread to run more then one time Pin
db7uk27-Jan-13 13:44
memberdb7uk27-Jan-13 13:44 
GeneralRe: Silverlight Dispatcher.BeginInvoke not allow thread to run more then one time Pin
Steve Holdorf27-Jan-13 14:16
memberSteve Holdorf27-Jan-13 14:16 
QuestionSilverlight OOB access in Online Pin
Sugumaran s24-Jan-13 0:09
memberSugumaran s24-Jan-13 0:09 
AnswerRe: Silverlight OOB access in Online Pin
Richard MacCutchan24-Jan-13 2:50
mvpRichard MacCutchan24-Jan-13 2:50 
GeneralRe: Silverlight OOB access in Online Pin
Sugumaran s24-Jan-13 18:31
memberSugumaran s24-Jan-13 18:31 
GeneralRe: Silverlight OOB access in Online Pin
Richard MacCutchan24-Jan-13 23:41
mvpRichard MacCutchan24-Jan-13 23:41 

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.


Advertise | Privacy | Mobile
Web02 | 2.8.160426.1 | Last Updated 29 Apr 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid