Difference between Label and TextBlock

前端 未结 5 2101
小鲜肉
小鲜肉 2020-11-30 19:40

According to the Windows Applications Development with Microsoft .NET 4 70-511 Training Kit

What is the difference between the Label control and T

5条回答
  •  感情败类
    2020-11-30 20:30

    Probably the most annoying feature of TextBlock is the implicit style lookup behavior, which is scoped to only to the closest DataTemplate. This is a default behavior for non Control xaml elements.

    
        
            
    
            
        
    
        
            
                
                    
                
            
        
    
        
            
                
                    
            
        
    
    

    Yields a result of:

    You can read more about it here.

提交回复
热议问题