Question : How to Make a RSS feed by using Silverlight 4 and Expression Blend 3?

Hello,

I have a question on how to Make a RSS feed by using Silverlight 4. I have came up this far:

XAML
................................................................................................................
<UserControl x:Class="weather.MainPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Width="1600" Height="800">
      <UserControl.Resources>
            <DataTemplate x:Key="itemTemplate">
                  <StackPanel>
                        <TextBlock Text="{Binding title}"/>
                        <TextBlock Text="{Binding link}"/>
                        <TextBlock Text="{Binding category}"/>
                        <TextBlock Text="{Binding description}"/>
                        <TextBlock Text="{Binding pubDate}"/>
                        <Image Source="{Binding image}" Height="40" Width="60"/>
                  </StackPanel>
            </DataTemplate>
      </UserControl.Resources>  
      <Grid x:Name="LayoutRoot" Background="Blue" DataContext="{Binding Source={StaticResource rssSampleDataSource}}" >
            <ListBox ItemTemplate="{StaticResource itemTemplate}" ItemsSource="{Binding channel.itemCollection}" Margin="8,8,0,192" HorizontalAlignment="Left"
                 Width="645"/>
            
        </Grid>
</UserControl>
---------------------------------------------------------------------------------------------------------------

A snap shot of the silverlight in a webpage is attached.

I am stuck in following two scenerios, and I cannot find enough information in the internet.

1) How to make the title clickable with the associated link so that when I click on the link, I go to the designated
website?
>>>I tried <TextBlock Text="{Binding link}"><TextBlock Text="{Binding title}"/></textBlock>----Gives compile error
>> I also tried with HyperlinkButton, but the Hyperlink Button does not have a Text element so that if the user clicks
hyperlinkButton, he goes to the associted webapge as the HyperlinkButton is connected with the associated link, but
it does not work.

2) How to make the actual image of the rss feed to appear in the list? The image is not part of the itemCollection. I have
added a property, for which I can see an image that comes from Expression Web, but how to bind this image with the image of
the rss feed?

More Information: The rss feed url is: http://rss.msnbc.msn.com/id/3032127/device/rss/rss.xml

Please give XAML codes, detail information, or website addresses that talk specificly about this matter.
      
 
HowToCreateRSSFeedByUsingSilverlight
327404
 

Answer : How to Make a RSS feed by using Silverlight 4 and Expression Blend 3?

Hi!

I am not a silverlight expert, but I found this link that seems to be helpful:
http://forums.silverlight.net/forums/p/185321/427880.aspx
Random Solutions  
 
programming4us programming4us