Xamarin 複数の値をバインドして表示する

複数のバインドの結果を書式設定する方法(マルチバインド)

<Label>
    <MultiBinding StringFormat="Last : {0} 回  {1:yyyy-MM-dd}">
        <Binding Path="QuizCount"/>
        <Binding Path="QuizLastDateTime"/>
    </MultiBinding>
</Label>
 

※ 先頭に書式設定を書くときは{}を付ける

<MultiBinding StringFormat="{}{0} {1} {2}">

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

This site uses Akismet to reduce spam. Learn how your comment data is processed.