WPF ToolTip does not update

前端 未结 5 1385
孤城傲影
孤城傲影 2020-12-17 17:21

Assuming I have a simple class that represents a staff member

class Staff
{
    public string FirstName { get; set; }
    public string FamilyName { get; set         


        
5条回答
  •  暖寄归人
    2020-12-17 18:13

    I was having the same problem of it not updating. I found the solution to be adding the controls to a ToolTip template:

    
        
            
            
            
            
                
                    
                        
                            
                        
                    
                 
            
         
    
    

    I don't quite understand why this is needed or why this makes it behave differently but it fixed the problem.

提交回复
热议问题