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 and I'm not sure what i'm missing. Can someone give me some direction please? Below is a example of what I'm currently trying.
<Border x:Name="border1" Width="{Binding Path=Width, ElementName=border2}"> ... </Border> <Border x:Name="border2"> ... </Border>
Change the path to ActualWidth
.
<Border x:Name="border1" Width="{Binding Path=ActualWidth, ElementName=border2}"> </Border> <Border x:Name="border2"> </Border>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With