Create new Windows 10 project and give suitable name.
In windows 10 default SyndicationClient helps you to feed RSS service.
Design view will be designed as like the following XAML code:
- <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*" />
- <RowDefinition Height="*" /> </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition></ColumnDefinition>
- <ColumnDefinition Width="Auto"></ColumnDefinition>
- </Grid.ColumnDefinitions>
- <TextBox Grid.Row="0" Name="Value" Margin="20" VerticalAlignment="Center" />
- <Button x:Name="feedClick" Click="feedClick_Click" Content="Feed" Grid.Column="1" Grid.Row="0"></Button>
- <ScrollViewer Grid.Row="1" Grid.Column="0" Grid.ColumnSpan="2" Margin="20" BorderThickness="0">
- <ItemsControl Name="Display">
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <StackPanel>
- <TextBlock TextWrapping="Wrap" Text="{Binding Path=Title.Text}" /> </StackPanel>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
- </ScrollViewer>
- <ProgressRing x:Name="testring" Grid.Row="2"></ProgressRing>
- </Grid>
- </Grid>
- SyndicationClient client = new SyndicationClient();
- SyndicationFeed feed = await client.RetrieveFeedAsync(uri);
Using foreach you can manipulate the feed items:
- oreach (SyndicationItem item in feed.Items)
- {
- list.Items.Add(item);
- }
The full source code should be like this:
- private async void load(ItemsControl list, Uri uri)
- {
- SyndicationClient client = new SyndicationClient();
- SyndicationFeed feed = await client.RetrieveFeedAsync(uri);
- if (feed != null)
- {
- foreach(SyndicationItem item in feed.Items)
- {
- list.Items.Add(item);
- }
- }
- }
- public void Go(ref ItemsControl list, string value)
- {
- try
- {
- load(list, new Uri(value));
- }
- catch
- {}
- list.Focus(FocusState.Keyboard);
- }
- }
- private void feedClick_Click(object sender, RoutedEventArgs e)
- {
- helperRSS.Go(ref Display, Value.Text);
- }
Output

For Source Code.

Santhakumar MunuswamyPosted Nov 28, 2015, 2:15 AM
Good One