Click here to Skip to main content
15,887,027 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: WPF Reporting Pin
Kevin Marois21-Oct-14 6:16
professionalKevin Marois21-Oct-14 6:16 
GeneralRe: WPF Reporting Pin
Pete O'Hanlon21-Oct-14 6:18
mvePete O'Hanlon21-Oct-14 6:18 
GeneralRe: WPF Reporting Pin
Kevin Marois21-Oct-14 6:20
professionalKevin Marois21-Oct-14 6:20 
AnswerRe: WPF Reporting Pin
Duncan Edwards Jones21-Oct-14 5:59
professionalDuncan Edwards Jones21-Oct-14 5:59 
AnswerRe: WPF Reporting Pin
Pete O'Hanlon21-Oct-14 7:45
mvePete O'Hanlon21-Oct-14 7:45 
AnswerRe: WPF Reporting Pin
Richard J Foster22-Oct-14 5:55
Richard J Foster22-Oct-14 5:55 
AnswerRe: Textblock with autoscrolling Pin
Richard Deeming5-Sep-14 5:24
mveRichard Deeming5-Sep-14 5:24 
QuestionWPF TreeView ToolTip Problems Pin
Kevin Marois4-Sep-14 7:51
professionalKevin Marois4-Sep-14 7:51 
I'm trying to display a custom tooltip for Tree Nodes

I created this resource:

<ToolTip x:Key="treeItemToolTip" 
            DataContext="{Binding Path=PlacementTarget,RelativeSource={x:Static RelativeSource.Self}}">

    <Grid>

        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*"/>
        </Grid.ColumnDefinitions>

        <TextBlock Grid.Row="0"  
                    Grid.Column="0"
                    Text="Revision:"/>
        <TextBlock Grid.Row="0"  
                    Grid.Column="1"
                    Text="{Binding RevisionNumber}"/>

    </Grid>
                
</ToolTip>      


then in my Tree I have

<controls:TreeViewEx BorderThickness="0"
                        Margin="5" 
                        ItemsSource="{Binding Nodes}"
                        IsManipulationEnabled ="True"
                        Visibility="{Binding ShowTree, Converter={StaticResource visibilityConverter}}"
                        ToolTip="{StaticResource treeItemToolTip}">

</controls:TreeViewEx>



Yet when I run it, the Output window tells me that the tooltip can't find it's data on the TREEVIEW, not the nodes.

The data for the tooltip is on each node. How do I correctly bind the Tooltip to the node's data?
If it's not broken, fix it until it is

AnswerRe: WPF TreeView ToolTip Problems Pin
SledgeHammer016-Sep-14 9:04
SledgeHammer016-Sep-14 9:04 
GeneralRe: WPF TreeView ToolTip Problems Pin
Kevin Marois8-Sep-14 5:56
professionalKevin Marois8-Sep-14 5:56 
GeneralRe: WPF TreeView ToolTip Problems Pin
SledgeHammer018-Sep-14 7:20
SledgeHammer018-Sep-14 7:20 
QuestionImport ResourceDictionary from a different assembly Pin
BrunoORMaia3-Sep-14 4:12
BrunoORMaia3-Sep-14 4:12 
QuestionIssue in converting jpeg to vector image in XAML format Pin
Deep Kulshrestha2-Sep-14 4:11
Deep Kulshrestha2-Sep-14 4:11 
QuestionWPF Tab Control, template tabs, dynamic generation Pin
Maxime Gavet-Marqués1-Sep-14 5:36
Maxime Gavet-Marqués1-Sep-14 5:36 
AnswerRe: WPF Tab Control, template tabs, dynamic generation Pin
Pete O'Hanlon1-Sep-14 6:37
mvePete O'Hanlon1-Sep-14 6:37 
GeneralRe: WPF Tab Control, template tabs, dynamic generation Pin
Maxime Gavet-Marqués1-Sep-14 21:53
Maxime Gavet-Marqués1-Sep-14 21:53 
GeneralRe: WPF Tab Control, template tabs, dynamic generation Pin
Pete O'Hanlon1-Sep-14 22:04
mvePete O'Hanlon1-Sep-14 22:04 
QuestionSilverlight development is stopped by Micro Soft Pin
Tridip Bhattacharjee26-Aug-14 21:06
professionalTridip Bhattacharjee26-Aug-14 21:06 
AnswerRe: Silverlight development is stopped by Micro Soft Pin
Pete O'Hanlon29-Aug-14 6:48
mvePete O'Hanlon29-Aug-14 6:48 
GeneralRe: Silverlight development is stopped by Micro Soft Pin
Tridip Bhattacharjee31-Aug-14 21:01
professionalTridip Bhattacharjee31-Aug-14 21:01 
GeneralRe: Silverlight development is stopped by Micro Soft Pin
Pete O'Hanlon31-Aug-14 22:36
mvePete O'Hanlon31-Aug-14 22:36 
GeneralWPF Datagrid Paging Pin
Victoria Arasi23-Aug-14 15:51
Victoria Arasi23-Aug-14 15:51 
GeneralRe: WPF Datagrid Paging Pin
Vincent Beek26-Aug-14 9:13
Vincent Beek26-Aug-14 9:13 
QuestionWPF Telerik RagGridView Binding Problem Pin
Kevin Marois21-Aug-14 10:46
professionalKevin Marois21-Aug-14 10:46 
AnswerRe: WPF Telerik RagGridView Binding Problem Pin
Mycroft Holmes21-Aug-14 12:41
professionalMycroft Holmes21-Aug-14 12: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.