Window.SizeToContent and TextBlock TextAlignment reset during runtime #19385
Discostoff
started this conversation in
General
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
i'm creating an application that updates the UI very often, sometimes my TextBlocks change the property of the TextAlignment from Center to Left and goes back to Center. Same for the SizeToContent property, i set the property once at the start to SizeToContent.Height, sometimes when the UI is refreshing and you change for example the size of the window.Height or window.Width, it reset to SizeToContent.Manuel on my windows and doesnt go back to the initial value. I'm on version 11.3.1.
Does somebody else experience the same behaviour or has a solution?
this is with SizeToContent.Manuel

this is how it should look like with SizeToContent.Height

Beta Was this translation helpful? Give feedback.
All reactions