WPF: Setting the Width (and Height) as a Percentage Value

前端 未结 7 623
悲&欢浪女
悲&欢浪女 2020-11-27 10:59

Say I want a TextBlock to have its Width equal to it\'s Parent container\'s Width (ie, stretch from side to side) or a percentage of

7条回答
  •  借酒劲吻你
    2020-11-27 11:37

    For anybody who is getting an error like : '2*' string cannot be converted to Length.

    
        
            
            
        
        
            
        
    
        Your text block a:
        Your text block b:
    
    

提交回复
热议问题