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
Server 2008 R2 DC File Permissions
To to retrieve Conference call recordings
tables with FK relationships at all
Access to toher User's Inboxes
How can I get CFileDialog to not change the initial directory?
restore from DB?
Windows 2003 to 2008R2 cluster migration and enforced quota
SBS 2003 Premium. Windows 7 client and Microsoft Shared Fax - Do they work together?
Outlook/Exchange Issue with Emails not showing
How to make simple PHP IF function for the following simple scenario ?