Jump to content
LaunchBox Community Forums

Centering text within a textbox

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?

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now