Using GraphicsSource Online

This sample demonstrates how to create a graphics layer by binding to a source of items (i.e. graphics). The GraphicsSource property should reference an IEnumerable of Graphic objects (such as ObservableCollection). The appropriate event mechanisms are in place so changes in the items are reflected in the graphics layer.

Download Sample Application
XAML C# VB.NET
<UserControl x:Class="ArcGISWPFSDK.UsingGraphicsSource"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:esri="http://schemas.esri.com/arcgis/client/2009"
    xmlns:local="clr-namespace:ArcGISWPFSDK">
    <Grid x:Name="LayoutRoot" Background="#FFE3E3E3">
        <Grid.Resources>
            <local:Customers x:Key="customers" />
        </Grid.Resources>
        <esri:Map x:Name="MyMap">
            <esri:ArcGISTiledMapServiceLayer 
                Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer" />
            <esri:GraphicsLayer ID="MyGraphicsLayer" 
                                GraphicsSource="{StaticResource customers}" />
        </esri:Map>
    </Grid>
</UserControl>

Sample code usage restrictions
5/16/2014