wpf control width binding

前端 未结 2 1099
天命终不由人
天命终不由人 2021-02-06 23:38

I have two borders with content, The second border width changes depending on the content, I\'m trying to bind the first border to the second border width but it\'s not working

2条回答
  •  后悔当初
    2021-02-07 00:06

    change path to ViewportWidth too !

    
    //and some elements exist there
       
          
      
    
    

    use ViewportWidth instead of ActualWidth because in this case ActualWidth is always shown 0! for test this problem you can test this with this line in your xaml.

      
    

提交回复
热议问题