Created
June 4, 2023 15:24
-
-
Save 5cover/a96b9b88e8be17bf53c751286d0fdddb to your computer and use it in GitHub Desktop.
TextBlock bound to current size of window.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<TextBlock> | |
<TextBlock.Text> | |
<MultiBinding StringFormat="{}{0:F0}x{1:F0}"> | |
<Binding ElementName="window" Path="ActualWidth" /> | |
<Binding ElementName="window" Path="ActualHeight" /> | |
</MultiBinding> | |
</TextBlock.Text> | |
</TextBlock> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment