<?xml version="1.0" encoding="utf-8"?>
<UserControl x:Class="EsriMapSamples.Clustering" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400" 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">
    
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Grid.Resources>
            <esri:SimpleMarkerSymbol x:Key="MyMarkerSymbol" Color="Green" Style="Diamond" Size="14" />
            <esri:SimpleRenderer x:Key="MySimpleRenderer" Symbol="{StaticResource MyMarkerSymbol}" />
        </Grid.Resources>
        <CheckBox x:Name="checkClustering" Content="Clustering" Margin="5" IsChecked="True" Checked="checkClustering_Checked" Unchecked="checkClustering_Unchecked" Foreground="White" />
        <esri:Map x:Name="map1" Extent="-130,10,-70,60" Grid.Row="1">
            <esri:Map.Layers>
                <esri:ArcGISTiledMapServiceLayer ID="StreetMapLayer" Url="http://server.arcgisonline.com/ArcGIS/rest/services/ESRI_StreetMap_World_2D/MapServer" />
                <esri:FeatureLayer ID="FeatureLayer1" Url="http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/0" Where="POP1990 &gt; 75000" Renderer="{StaticResource MySimpleRenderer}">
                    <esri:FeatureLayer.Clusterer>
                        <esri:FlareClusterer x:Name="flareClusterer" FlareBackground="#99FF0000" FlareForeground="White" MaximumFlareCount="9" />
                    </esri:FeatureLayer.Clusterer>
                </esri:FeatureLayer>
            </esri:Map.Layers>
        </esri:Map>
    </Grid>
</UserControl>