Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7436091
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:11:01+00:00 2026-05-29T10:11:01+00:00

I am essentially creating a basic address bar for a component in my UI.

  • 0

I am essentially creating a basic address bar for a component in my UI. The text in the TextBlock (inside a border) grows as you navigate a simple system.

I can get the text on the right to appear all the time by setting HorizontalAlignment=”Right” but if it doesn’t fill up the box then it looks weird because its right aligned. Is there any way to make it so that the right most text will appear but the text ends up left aligned?

I tried HorizontalAlignment=”Left” with TextAlignment=”Right”, didn’t work.

Here is some code so just so you can see the scenario

<Border CornerRadius="3" BorderThickness="1" BorderBrush="Gray" Margin="0,5,3,0" Padding="4,0,4,0" HorizontalAlignment="Stretch" Width="403" >
      <TextBlock Text="This is a test/testynessssssss/goasdasdsaddddddddddddddddddddddddddddddddddddd" VerticalAlignment="Center" FontSize="12" HorizontalAlignment="Left" TextAlignment="Right" />
</Border>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T10:11:02+00:00Added an answer on May 29, 2026 at 10:11 am

    The only thing I can think of it to wrap it in a ScrollViewer with invisible scrollbars, then have an attached property or something to auto scroll the ScrollViewer to the right.

    Either that or write your own Panel. This would probably be more useful in the long run.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple ListView, essentially creating a MxN grid. FullRowSelect is off. Essentially
Essentially the only thing I can deploy to my deployment machine is a JAR
Essentially I'm wondering if the following can be done in Ruby. So for example:
Essentially I have three fields and I am creating a new one which is
In our Pylons based web-app, we're creating a class that essentially provides some logging
I'm essentially creating a vertical breadcrumb to create a website navigation for a mobile
I'm creating what is essentially a public-facing site with a protected admin backend (i.e.
I'm running into some issues with boost::bind and creating threads. Essentially, I would like
I'm new to version control and I understand that committing is essentially creating a
I need to have functionality that would essentially emulate user creating a port forwrding

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.