我有兩個屬性,Related_Id和PageNumber。我想將這兩個值綁定到一個標籤。XAML綁定標籤內容中的多個屬性
XAML代碼
<StackPanel>
<sdk:Label x:Name="RelatedItemIdLabel"
HorizontalAlignment="Left"
VerticalAlignment="Top"
Content="{Binding CreateMessage.RelatedId}" />
</StackPanel>
電流輸出:Related_Id
所需的輸出:Related_Id /的PageNumber
誰能幫我找到解決辦法..
謝謝..
使用MultiBinding。 – Clemens
[http://stackoverflow.com/questions/541896/concatenate-strings-instead-of-using-a-stack-of-textblocks](http://stackoverflow.com/questions/541896/concatenate-strings-instead -of-using-a-stack-of-textblocks) – JohnnyQ