Jump to content
LaunchBox Community Forums

Centering text within a textbox


Jair

Recommended Posts

Just a question, feels a little silly to ask but I haven't been able to figure it out. I'm trying to center some text inside a textblock element on one of my game views but haven't figured out how to do it. TextAlign doesn't work and HorizontalAlignment only affects the textbox itself and not the text. No matter what I do it stays left-aligned. Also, I've noticed that when entering a game view, text that doesn't come from a binding path but which was simply typed in directly in the code, renders before everything else on the screen. Is there a way to force BB to delay that rendering so everything appears at the same time?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...