How to specify a ToolTip for a control in a Style from XAML?

后端 未结 6 1738
面向向阳花
面向向阳花 2021-02-13 09:44

I\'m using a the WPF datagrid from the Microsoft CodePlex project. I have a custom control that I want to databind to a field from the row of the datagrid. I can\'t for the life

6条回答
  •  庸人自扰
    2021-02-13 10:26

    I also got this working with a couple of changes; included incase it helps someone.

    My Datadrid is bound to a list of custom objects, I wanted to display the string "Name" as a column and the string "text" in the tooltip. The trick for me (newbe) was that I had to include the Text Column and hide it for it to show up in the tooltip, i.e.:

    
        
            
            
        
        
            
        
    
    

提交回复
热议问题