Skip to content

Instantly share code, notes, and snippets.

@emoacht
Last active June 29, 2022 00:14
Show Gist options
  • Save emoacht/3bc4aa5185b49ece2c2252124ab6456c to your computer and use it in GitHub Desktop.
Save emoacht/3bc4aa5185b49ece2c2252124ab6456c to your computer and use it in GitHub Desktop.
Fill TextBlock with major and minor version.
<TextBlock>
<TextBlock.Text>
<!-- View is bound to View Model which has Version Version property. -->
<MultiBinding StringFormat="v{0}.{1}">
<Binding Path="Version.Major"/>
<Binding Path="Version.Minor"/>
</MultiBinding>
</TextBlock.Text>
</TextBlock>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment