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

The Archive Base Latest Questions

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

I have a xml code: <Paragraph>Download it directly to the <Hyperlink NavigateUri=http://itunes.apple.com/fi/app/goalapp/id502461189?ls=1&mt=8>iTunes Store</Hyperlink> or

  • 0

I have a xml code:

<Paragraph>Download it directly to the <Hyperlink NavigateUri="http://itunes.apple.com/fi/app/goalapp/id502461189?ls=1&mt=8">iTunes Store</Hyperlink> or <Hyperlink NavigateUri="https://market.android.com/details?id=com.strikersoft.meramal.se">Android Market</Hyperlink>. The application is launched for Swedish app store.</Paragraph>

richTextBox.Xaml = xml;

But in this case I have an error, so how correctly set xaml to RichTextBox in Windows Phone?

Update

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-03T12:51:56+00:00Added an answer on June 3, 2026 at 12:51 pm

    Basic Usage or the RichTextBox based on the code posted:

    <RichTextBox 
        Width="400" Height="400" 
        Background="Transparent" 
        BorderBrush="White" 
        BorderThickness="3">
        <Paragraph>Download it directly to the 
            <Hyperlink NavigateUri="http://itunes.apple.com/fi/app/goalapp/id502461189?ls=1&amp;mt=8" TargetName="_blank">iTunes Store</Hyperlink> 
            or <Hyperlink NavigateUri="https://market.android.com/details?id=com.strikersoft.meramal.se" TargetName="_blank">Android Market</Hyperlink>. 
            The application is launched for Swedish app store.
        </Paragraph>
    </RichTextBox>
    

    Note: when creating URL’s, the URL must be encoded, i.e., when using ampersands (&) in a URL, they should be created as &amp; and the NavigateUri needs the TargetName="_blank" attribute added to open in the browser.

    Edit

    When setting the XAML property in code, the xml namespace needs to be included in the xml. Wrap the entire xml block (and be sure to encode the URL as noted above) in a Section node:

    <Section 
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
      <Paragraph>
        Download it directly to the
        <Hyperlink NavigateUri="http://itunes.apple.com/fi/app/goalapp/id502461189?ls=1&amp;mt=8" TargetName="_blank">iTunes Store</Hyperlink>
        or <Hyperlink NavigateUri="https://market.android.com/details?id=com.strikersoft.meramal.se" TargetName="_blank">Android Market</Hyperlink>.
        The application is launched for Swedish app store.
      </Paragraph>
    </Section>
    

    In the code behind, make sure the XML is a string, i.e.,:

    var xml = XDocument.Load("MyDoc.xml");
    richTextBox.Xaml = xml.ToString();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the xml code: <feed xml:base=https://test.net/ xmlns:d=http://schemas.microsoft.com/ado/2007/08/dataservices xmlns:m=http://schemas.microsoft.com/ado/2007/08/dataservices/metadata xmlns=http://www.w3.org/2005/Atom> <title type=text>CustomTable5</title> <id>https://eqmetest.table.core.windows.net/CustomTable5</id> <updated>2011-11-15T11:36:32Z</updated>
I have a XML code like this: <?xml version=1.0 encoding=utf-8 ?> <Window xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml>
I have the following XML code: <CampaignFrameResponse xmlns=http://Qsurv/api xmlns:i=http://www.w3.org/2001/XMLSchema-instance> <Message>Success</Message> <Status>Success</Status> <FrameHeight>308</FrameHeight> <FrameUrl>http://delivery.usurv.com?Key=a5018c85-222a-4444-a0ca-b85c42f3757d&amp;ReturnUrl=http%3a%2f%2flocalhost%3a8080%2feveningstar%2fhome</FrameUrl> </CampaignFrameResponse>
I have the following xml code: <OML> <bg-def xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance name=EX1/> </OML> I want to
Learning xml, Can anyone help me? I have following XML code: **<book lang=en>name of
I have the following XML code. You will notice the tag Description is repeated,
I have an XML layout similar to this (the XML and code is a
I have some php files in a server which generate xml code in them.
friends, i have created custom title bar using following titlebar.xml file with code <?xml
I have code like this: // Take the xml message and turn it into

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.