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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T18:05:49+00:00 2026-06-02T18:05:49+00:00

So I have a simple RSS-reader, that has a feed that gets updated when

  • 0

So I have a simple RSS-reader, that has a feed that gets updated when the app is started. How can I add functionality that keeps the new unread items in a different color? I would like to make it visible for the user which posts are new since last time he/she opened the app.

  • 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-02T18:05:51+00:00Added an answer on June 2, 2026 at 6:05 pm

    Presuming you have a model something like;

    public class RSSItem {
      public bool IsUnread { get; set; }
      public string Title { get; set; }
    }
    

    You’ll want to bind the ForegroundColor of a TextBlock to your IsUnread property using a IValueConverter that takes a bool and returns a Color. So your XAML might look like;

    <phone:PhoneApplicationPage.Resources>
      <converters:UnreadForegroundConverter x:Key="UnreadForegroundConverter" />
    </phone:PhoneApplicationPage.Resources>
    
    <ListBox x:Name="RSSItems">
      <DataTemplate>
        <TextBlock Text="{Binding Title}" Foreground="{Binding IsUnread, Converter={StaticResource UnreadForegroundConverter}}" />
      </DataTemplate>
    </ListBox>
    

    Don’t forget to add the xmlns:converters attribute to your Page’s tag.

    You’ll then want to implement your IValueConverter to do the boolean to colour conversion;

    public class UnreadForegroundConverter : IValueConverter {
      public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) {
        if ((bool)value == true) {
          return Application.Current.Resources["PhoneAccentColor"];
        }
    
        return Application.Current.Resources["PhoneForegroundColor"];
      }
    
      public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) {
        throw new NotImplementedException();
      }
    
    }
    

    And obviously you’ll need to bind the listbox, RSSItems, to a collection of RSSItem. Eg.

    ObservableCollection<RSSItem> items = new ObservableCollection<RSSItem>();
    // populate items somehow
    RSSItems.ItemsSource = items;
    

    Hope that helps.

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

Sidebar

Related Questions

I have a simple Android RSS reader app in which I am using SAX
I have implemented a simple RSS reader in Java. I hit a URL and
Any example on how to parse/have access to simple RSS feed elements in JS?
I have a simple RSS feed coming in my Wordpress site with php, but
I have a fairly simple process running that periodically pulls RSS feeds and updates
I'm trying to put together a simple RSS feed reader in windows phone 7
I have been trying to create a simple app that parse an entire channel
I have an RSS feed that I'm setting up on my new site using
I am building a basic RSS reader app that, which the 'story' is clicked,
I have created an RSS reader that lists items in a listview. I also

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.