<Button>
<Button.Content>
<MultiBinding StringFormat="{}{0},{1}">
<Binding Path="Width" RelativeSource="{RelativeSource Mode=FindAncestor,AncestorType={x:Type Window}}"/>
<Binding Path="Height" RelativeSource="{RelativeSource Mode=FindAncestor,AncestorType={x:Type Window}}"/>
</MultiBinding>
</Button.Content>
</Button>
여기서는 단추의 내용에 창 너비와 높이를 바인딩하려고했지만 의미가 없습니다.두 개 이상의 속성을 단일 요소 속성에 바인딩하는 문제
StringFormat은 대상이 string 유형이어야합니다. –
당신이 원하는 건 무엇입니까? 나는 그것을 얻지 않는다. 멀티 바인드를 사용하는 경우 멀티콘을 사용해야합니다. – blindmeis