Click here to Skip to main content
12,621,302 members (32,027 online)
Click here to Skip to main content

Stats

38K views
1.3K downloads
53 bookmarked
Posted

A Simple Silverlight RSS Reader

, 21 Jun 2010 CPOL
This is a simple Silverlight RSS Reader which pulls out data from a feed URL.
RSSReader
RSSReader.suo
RSSReader.Web
App_Data
bin
RSSReader.dll
RSSReader.pdb
RSSReader.Web.dll
RSSReader.Web.pdb
System.Windows.Controls.Theming.Toolkit.dll
System.Windows.Controls.Theming.TwilightBlue.dll
ClientBin
RSSReader.xap
Properties
RSSReader.Web.csproj.user
RSSReaderService.svc
RSSReader
Bin
Debug
de
es
fr
Images
it
ja
ko
RSSReader.dll
RSSReader.xap
System.Windows.Controls.Theming.Toolkit.dll
System.Windows.Controls.Theming.TwilightBlue.dll
zh-Hans
zh-Hant
Properties
RSSReader.csproj.user
RSSReader.suo
Service References
RSSService
configuration.svcinfo
configuration91.svcinfo
Reference.svcmap
RSSReader.RSSService.RSSItem.datasource
RSSReaderService.disco
RSSReaderService.wsdl
ServiceReferences.ClientConfig
<UserControl x:Class="RSSReader.UC_RSSReader"
			 x:Name="ucRSSReader"
			 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
			 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
			 xmlns:uc="clr-namespace:RSSReader">

	<Grid x:Name="LayoutRoot"
		  Background="White"
		  HorizontalAlignment="Stretch"
		  VerticalAlignment="Stretch">
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto" />
			<RowDefinition Height="Auto" />
			<RowDefinition Height="*" />
		</Grid.RowDefinitions>
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width=".50*" />
			<ColumnDefinition Width="*" />
		</Grid.ColumnDefinitions>
		<TextBlock Text="Enter Feed Url :"
				   Foreground="Black"
				   HorizontalAlignment="Right"
				   VerticalAlignment="Center" />
		<TextBox x:Name="RSSFeedUrlTextBox"
				 Grid.Column="1"
				 HorizontalAlignment="Left"
				 BorderThickness="2"
				 Width="500" />
		<Button x:Name="FetchRSS"
				Click="FetchRSS_Click"
				Grid.Row="1"
				Grid.Column="1"
				Content="Fetch"
				Width="100"
				Height="25"
				HorizontalAlignment="Left"
				Cursor="Hand" />
		<ListBox x:Name="RSSFeed"
				 VerticalAlignment="Stretch"
				 HorizontalAlignment="Stretch"
				 Grid.Row="2"
				 Grid.ColumnSpan="2">
			<ListBox.ItemTemplate>
				<DataTemplate>
					<Grid MinWidth="{Binding ElementName=LayoutRoot, Path=ActualWidth}"
						  MaxWidth="{Binding ElementName=LayoutRoot, Path=ActualWidth}">
						<Grid.RowDefinitions>
							<RowDefinition />
							<RowDefinition />
							<RowDefinition />
						</Grid.RowDefinitions>
						<TextBlock Text="{Binding Title}"
								   FontFamily="Verdana"
								   FontSize="13" />
						<TextBlock Grid.Row="2"
								   Text="{Binding PublishDate}"
								   HorizontalAlignment="Left"
								   FontFamily="Verdana"
								   FontSize="11" />
						<HyperlinkButton Grid.Row="2"
										 Content="Read Article>>"
										 NavigateUri="{Binding Permalink}"
										 HorizontalAlignment="Center"
										 FontFamily="Verdana"
										 FontSize="11"
										 FontStyle="Italic"
										 ToolTipService.ToolTip="{Binding Title}"
										 TargetName="__blank" />
					</Grid>
				</DataTemplate>
			</ListBox.ItemTemplate>
		</ListBox>
		<TextBlock x:Name="LoadingTextBlock"
				   Text="Loading..Please Wait"
				   HorizontalAlignment="Center"
				   VerticalAlignment="Center"
				   Foreground="Black"
				   FontFamily="Verdana"
				   FontSize="11"
				   FontStyle="Italic"
				   Grid.Row="2"
				   Grid.ColumnSpan="2"
				   Visibility="Collapsed"/>
	</Grid>
</UserControl>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Arun Jacob
Software Developer Tata Consultancy Services
India India
I have been working in different .NET Technologies like ASP.NET,WPF,Silverlight for the last few years.I am enjoying my life as a Programmer and spending time with my Family,Friends & Camera.

My Technical Blog


My Photo Blog


You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.161128.1 | Last Updated 22 Jun 2010
Article Copyright 2010 by Arun Jacob
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid