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

  • SEARCH
  • Home
  • 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 6739243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:27:50+00:00 2026-05-26T11:27:50+00:00

Why the text in the hyperlink is vertical aligned to the top and not

  • 0

Why the text in the hyperlink is vertical aligned to the top and not goes to the same line as the label .
Any idea why ?

<StackPanel Grid.Row="1" Orientation="Horizontal" Margin="5">
    <Label   TextElement.FontSize="18" 
             FontWeight="Bold"
             HorizontalAlignment="Left"
             VerticalAlignment="Top"
             Name="LDOTextFilelable"
             Content="LDO Text File:"
             BorderThickness="0"/>



    <TextBlock Height="39" TextElement.FontSize="18" FontFamily="Verdana"  VerticalAlignment="Bottom"
               Name="LDOTextFilelink" Padding="5,0,0,0" >
        <Hyperlink Command="{Binding Path= SaveChangesCommand}" >
                    <TextBlock Text="{Binding Path=LdoFilePath}" Height="39"  VerticalAlignment="Bottom"/>
        </Hyperlink>
    </TextBlock>

</StackPanel>

enter image description here

Thanks for help.

  • 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-26T11:27:51+00:00Added an answer on May 26, 2026 at 11:27 am

    The preferred way to place hyperlinks in the text is following:

    <TextBlock Name="TextBlockWithHyperlink">
        <Run FontWeight="Bold">LDO Text File: </Run>
        <Hyperlink Command="{Binding Path= SaveChangesCommand}">
            <TextBlock FontFamily="Verdana" Text="{Binding Path=LdoFilePath}"/>
        </Hyperlink>
    </TextBlock>
    

    This way you’ll have no problems with alignment.

    In WPF 4.0 you can replace the inner TextBlock with a simple Run.

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

Sidebar

Related Questions

Im trying to display hyperlinks (formated as hyperlink) in a listview row but not
Just trying to replace the hyperlink text and I'm not finding a way to
I have this block of xaml that allows the text of a hyperlink to
alt text http://sites.google.com/site/yanchengcheok/Home/help-remove-dot-line.png?attredirects=0 Whenever a click event happen on a hyper-link, I will use
anyone know how to discover hyperlink in some text and convert that hyperlink in
I am trying to open a hyperlink with target=blank. <html> <head> <script type=text/javascript src=http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js></script>
How can I create a button whose text look like a hyperlink text.
I am working in replacing a text with a hyperlink in C#. The problem
I am working in replacing a text with a hyperlink in C#. The problem
In my project I am not able to change the color of the hyperlink

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.