Show GeoRSS Feed Online

This sample demonstrates displaying a GeoRSS feed on the map. Click the Fetch RSS button to retrieve the RSS feed specified in the textbox and display it on the map. The textbox is initialized with the URL to an earthquake data feed from the USGS. When the Fetch RSS button is clicked, the GeoRSS feed is fetched in the code-behind. When received, it is parsed and used to create Graphics, which are then added to a GraphicsLayer.

Download Sample Application
XAML C# VB.NET
<UserControl x:Class="ArcGISWPFSDK.GeoRSS" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:esri="http://schemas.esri.com/arcgis/client/2009">
    <Grid x:Name="LayoutRoot" Background="White">

        <Grid.RowDefinitions>
            <RowDefinition Height="35" />
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="3*" />
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>

        <Grid.Resources>
            <esri:PictureMarkerSymbol x:Key="QuakePictureSymbol" Source="/Assets/Images/quake-30x30.png"
                OffsetX="8" OffsetY="8" Width="16" />
        </Grid.Resources>

        <StackPanel Grid.Row="0" Margin="5" Orientation="Horizontal">
            <TextBox x:Name="FeedLocationTextBox" Text="http://earthquake.usgs.gov/eqcenter/catalogs/eqs7day-M2.5.xml" 
                Width="350" VerticalContentAlignment="Bottom" />
            <Button x:Name="FetchButton"  Content="Fetch RSS" Width="100" Margin="5,0,0,0"  
                Click="Fetch_Click"/>
        </StackPanel>
        <esri:Map x:Name="MyMap" Grid.Row="1" Grid.ColumnSpan="2" WrapAround="True">
            <esri:ArcGISTiledMapServiceLayer ID="PhysicalTiledLayer" 
                    Url="http://services.arcgisonline.com/ArcGIS/rest/services/NGS_Topo_US_2D/MapServer"/>
            <esri:GraphicsLayer ID="MyGraphicsLayer" >
                <esri:GraphicsLayer.MapTip>
                    <Grid Background="LightYellow">
                        <StackPanel Orientation="Horizontal" Margin="5" >
                            <TextBlock Text="{Binding [MAGNITUDE]}" Foreground="Black" />
                        </StackPanel>
                        <Border BorderBrush="Black" BorderThickness="1" />
                    </Grid>
                </esri:GraphicsLayer.MapTip>
            </esri:GraphicsLayer>
        </esri:Map>

    </Grid>
</UserControl>


Sample code usage restrictions
5/16/2014