Microsoft
Software
Hardware
Network
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.micr
osoft.com/
winfx/2006
/xaml/pres
entation
"
xmlns:x="
http://schemas.mi
crosoft.co
m/winfx/20
06/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="{StaticResou
rce 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>----G
ives 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/i
d/3032127/
device/rss
/rss.xml
Please give XAML codes, detail information, or website addresses that talk specificly about this matter.
HowToCreateRSSFeedByUsingSilverl.png
(85 KB)
(File Type Details)
HowToCreateRSSFeedByUsingS
ilverlight
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.silv
erlight.ne
t/forums/p
/185321/42
7880.aspx
Random Solutions
exiting users from database
Error message when replying, sending, openning email in OWA
MAGENTO ENTERPRISE: Need to make static link in category menu (always display throughout layers)
Set site as read only to everyone
Replace Line breaks with spaces using VB in Excel
Need to Create A Form With 2 Actions.
Enteprise Application Documentation Application
Excel VBA code to automatically set a Pivot Table filter on 2 specific values in a field
Powerpoint 2003 - in Vista -
Microsoft Exchange 2010