XAML에서 한 요소의 높이를 다른 요소의 높이의 절반으로 바인딩하고 싶습니다. 코드 숨김에 변환기를 쓰지 않는 방법이 있습니까?변환기를 사용하는 것 외에 xaml 요소 바인딩 문에서 간단한 계산을 수행하는 방법이 있습니까?
예 : - 내가있어 무엇 ...
<Button Name="RemoveButton" Content="Remove Stage" Width="100" Height="{Binding ElementName=AddButton, Path=Height, Converter={StaticResource MyHalfHeightConverter}}"/>
내가 무엇을하고 싶습니다 ... 내가 컨버터없이 결합 액이 있다고 생각하지 않습니다
<Button Name="RemoveButton" Content="Remove Stage" Width="100" Height="{Binding ElementName=AddButton, Path=(Height/2.0)}"/>