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 8643485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T12:03:12+00:00 2026-06-12T12:03:12+00:00

How do I create properly formatted hyperlinks in Windows Store Apps in XAML? I

  • 0

How do I create properly formatted hyperlinks in Windows Store Apps in XAML? I tried creating an inline hyperlink and want to style it with a staticresource:

          <RichTextBlock Style="{StaticResource PageHeaderTextStyle}" Grid.ColumnSpan="2">
            <Paragraph>
                <Run>"A sentence with inline text "</Run>
                <InlineUIContainer>
                    <HyperlinkButton Background="Yellow">
                        my link
                    </HyperlinkButton>
                </InlineUIContainer>
                <Run>... some more text</Run>
            </Paragraph>
        </RichTextBlock>

i get the following where the hyperlink is not aligned with the rest of the sentence:

enter image description here

  • 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-06-12T12:03:13+00:00Added an answer on June 12, 2026 at 12:03 pm

    Well, I tried this to no avail:

    <RichTextBlock FontSize="20">
        <Paragraph Foreground="White" FontFamily="Segoe UI Light">
            <Run>Now is the time for</Run>
            <InlineUIContainer>
                <HyperlinkButton Content="all good men">
                    <HyperlinkButton.Template>
                        <ControlTemplate>
                            <TextBlock Margin="5,0,5,0"  FontSize="20" FontFamily="Segoe UI Light"
                                        Text="{Binding Content, Mode=OneWay, RelativeSource={RelativeSource Mode=TemplatedParent}}" />
                        </ControlTemplate>
                    </HyperlinkButton.Template>
                </HyperlinkButton>
            </InlineUIContainer>
            <Run>to come to the aid of their country</Run>
        </Paragraph>
    </RichTextBlock>
    

    And so then I tried this:

    <RichTextBlock FontSize="20">
        <Paragraph Foreground="White" FontFamily="Segoe UI Light">
            <Run>Now is the time for</Run>
            <InlineUIContainer>
                <TextBlock Margin="5,0,5,0" Tapped="TextBlock_Tapped_1">
                    <Underline><Run Text="all good men" /></Underline>
                </TextBlock>
            </InlineUIContainer>
            <Run>to come to the aid of their country</Run>
        </Paragraph>
    </RichTextBlock>
    

    This works like a charm!

    enter image description here

    I am not pretending it is not a little more work to implement your own hyperlink button but think of it this way – you will have 100% control over its layout! And it will easily inherit from the font styles around it!

    Make sense?

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

Sidebar

Related Questions

I'm attempting to create a properly formatted video file for use in Apple's HTTP
I am wondering what is the best way to properly create a Development and
CREATE OR REPLACE FUNCTION layer2layerAttribute RETURN VARCHAR2 AS /** * This function properly joins
I'm trying to create a custom object that behaves properly in set operations. I've
I'm trying to create a Vista gadget, I've properly stored my Date1 variable and
I'm having difficulty using MooseX::Declare properly when calling BUILDARGS. I'm trying to create an
I want to create a property grid (the one which is similar to the
I am having some problems building a properly formatted SOAP message using XMLDocument in
What is the best way to convert a (properly Json-formatted) String object into a
I tried to create a view helper which takes a DateTime object and returns

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.