Replies: 1 comment 3 replies
-
Sounds like you have a MaxWidth of the dialog in mind because you are not happy with the very wide one, so why not just set MaxWidth on the dialog? Otherwise I think you would have to derive from the TextBlock and in the MeasureOverride return zero. It might be a bit tricky with the height though. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I guess the solution to my issue is easy, but it appears that I'm a blockhead at this time 😢
I want a
TextBlock
control to be serving as an informational item that's supposed to be as wide as the other controls demand. So, it's width is supposed to be "non greedy", using the width that's determined by the other controls in theDockPanel
wrapping the text it holds as required.It's supposed to look something like this, where I'm using the

MaxWidth
property do demonstrate the desired situation:However, currently the

TextBlock
control doesn't wrap:How can I have the
TextBlock
control use the width that's determined by the controls beneath?Beta Was this translation helpful? Give feedback.
All reactions