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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:41:10+00:00 2026-06-13T09:41:10+00:00

I am building a simple rss reader app for Windows 8 in C# and

  • 0

I am building a simple rss reader app for Windows 8 in C# and XMAL.

The feed returns html content for the article body.

I create an ItemDetailPage and in it, it uses RichTextBlock columns to display columns of text – which look great.

So I bind a Content property to the rich text block which uses HtmlUtilities.ConvertToText to parse the text from the html content.

This works well. However I still want to have hyperlinks and images in the content. Originally I was using a WebView and NavigateToString however you can’t use columns so get a long page of text, which I don’t want.

Is there a way to do this? I can parse the images and hyperlinks using the metro port of the
Html Agility Pack but is there any way to embed these hyperlinks and images? For images, I was thinking of adding to richtextcolumns class so when creating a new column, before adding that, it added an image. This may work, but would terrible with a image at the start of every column.

Does anyone have any ideas how this could be achieved? I would be similar to the contoso news app design they have up http://msdn.microsoft.com/en-us/library/windows/apps/hh868272.aspx. If you scroll to the article page they have a block quote in the article content.

  • 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-13T09:41:11+00:00Added an answer on June 13, 2026 at 9:41 am

    The RichTextBlock contains a collection of Paragraphs and a Paragraph is a list of Inlines. The Inlines are usually Runs, but you can also use InlineUIContainer as a inline. InlineUIContainer has a child that can by any XAML element you want, hyperlink or an image.

    I personally use this function to convert an hyperlink from html to a Inline:

        public void AddLink(XElement element)
        {
            var link = element.Attribute("href").Value;
    
            InlineUIContainer uc = new InlineUIContainer();
            TextBlock tb = new TextBlock();
            tb.Margin = new Thickness(0, 0, 0, 0);
            var run = new Run();
            run.Text = element.Value;
            tb.Inlines.Add(run);
            tb.Tapped += (s, e) =>
            {
                Launcher.LaunchUriAsync(new Uri(link, UriKind.Absolute));
            };
            uc.Child = tb;
            paragraph.Inlines.Add(uc);
        }
    

    You can do a similiar think with an Image

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

Sidebar

Related Questions

I'm building a simple web-based RSS reader in Python, but I'm having trouble parsing
I am building a basic RSS reader app that, which the 'story' is clicked,
I am building simple HTML pages and I want to use this kind of
I building a simple (crude, in fact) gallery in html / twig, css and
Building a simple app here; the methods in question: static coin class public static
I'm building a simple Contact Management app with Crud using AngularJS 1.0.0rc8. Getting a
I'm building a RSS feed of my website using jquery and the link element
I'm building a simple HTML/CSS template for myself, which is here , and it
Building a simple asp.net web app just to test things out (will obviously refactor
Im building a simple game app, where you have to move a ball away

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.