TextBlock の Text プロパティを、一部の要素および一部のモデルのプロパティにバインドしたいと考えています。このようなもの:
<TextBlock>
<TextBlock.Text>
<MultiBinding>
<Binding ElementName="myElement1" Mode="OneWay" Path="Text" />
<Binding ElementName="myElement2" Mode="OneWay" Path="Text" />
<Binding Mode="OneWay" Path="Property1" />
<Binding Mode="OneWay" Path="Property2" />
</MultiBinding>
</TextBlock.Text>
</TextBlock>
TextBlock にはテキスト値、myElement1、myElement2 および Property1、Property2 の組み合わせがあります。問題ありません。テキスト値が正常に生成されました。
これが私の質問です:
コードなしで、TextBlock の (結合された) テキスト値全体を別のモデルのプロパティ、つまり Property3 にバインドできますか?