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

后端 未结 6 1759
面向向阳花
面向向阳花 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:18

    I needed to set the tooltip dynamically based on the cell content. I'm using the tooltip to display text overflow text from the cell. The binding below is from a c# class property named CellText. Thanks to the posts above for allowing me to avoid figuring out the entire thing myself.

    
                                
                                    
                                
                            
    

提交回复
热议问题