MapTips FeatureLayer

This sample demonstrates specifying MapTips using the local featureLayer's MapTips property. In the sample, the layer's OutFields are displayed on the MapTips. The OutFields property allows you to explicitly specify what fields to include with the layer.

Download Sample Application
XAML C# VB.NET
<UserControl x:Class="ArcGISWPFSDK.LocalFeatureLayerMapTips"
    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.Resources>
            <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"/>
            <esri:SimpleRenderer x:Key="MySimplePointRenderer">
                <esri:SimpleRenderer.Symbol>
                    <esri:SimpleMarkerSymbol Color="Orange"/>
                </esri:SimpleRenderer.Symbol>
            </esri:SimpleRenderer>
            <LinearGradientBrush x:Key="PanelGradient" EndPoint="0.5,1" StartPoint="0.5,0">
                <LinearGradientBrush.RelativeTransform>
                    <TransformGroup>
                        <ScaleTransform CenterY="0.5" CenterX="0.5"/>
                        <SkewTransform CenterY="0.5" CenterX="0.5"/>
                        <RotateTransform Angle="176" CenterY="0.5" CenterX="0.5"/>
                        <TranslateTransform/>
                    </TransformGroup>
                </LinearGradientBrush.RelativeTransform>
                <GradientStop Color="#FF145787" Offset="0.16"/>
                <GradientStop Color="#FF3D7FAC" Offset="0.502"/>
                <GradientStop Color="#FF88C5EF" Offset="0.984"/>
            </LinearGradientBrush>
        </Grid.Resources>
        <esri:Map x:Name="MyMap" WrapAround="True" Extent="-15000000,2000000,-7000000,8000000" Background="#FFE3E3E3" MinimumResolution="2445.98490512499">
            <esri:Map.Layers>
                <esri:ArcGISLocalTiledLayer ID="TopoMapLayer"
                  Path="..\\Data\\TPKs\\Topographic.tpk"/>
                <esri:ArcGISLocalFeatureLayer ID="Cities" LayerName="Cities" 
                   Path="..\\Data\\MPKS\\USCitiesStates.mpk"
                    Where="POP2007 > 75000" 
                    Renderer="{StaticResource MySimplePointRenderer}"
                    OutFields="AREANAME,POP2007">
                    <esri:ArcGISLocalFeatureLayer.Clusterer>
                        <esri:FlareClusterer FlareBackground="Orange" FlareForeground="Black" MaximumFlareCount="9" />
                    </esri:ArcGISLocalFeatureLayer.Clusterer>
                    <esri:ArcGISLocalFeatureLayer.MapTip>
                        <Border CornerRadius="10" BorderBrush="Black" BorderThickness="2" Margin="0,0,15,15"  Background="{StaticResource PanelGradient}">
                               <StackPanel Margin="7">
                                <TextBlock Text="{Binding [AREANAME]}" FontWeight="Bold" Foreground="White"  />
                                <StackPanel Orientation="Horizontal">
                                    <TextBlock Text="Population: " Foreground="White" />
                                    <TextBlock Text="{Binding [POP2007]}" Foreground="White" />
                                </StackPanel>
                            </StackPanel>
                        </Border>
                    </esri:ArcGISLocalFeatureLayer.MapTip>
                </esri:ArcGISLocalFeatureLayer>
            </esri:Map.Layers>
        </esri:Map>
        <ProgressBar x:Name="MyProgressBar" IsIndeterminate="True" VerticalAlignment="Bottom" Width="200" Height="20" Margin="10" Visibility="{Binding Path=IsBusy, Converter={StaticResource BooleanToVisibilityConverter}}"></ProgressBar>
    </Grid>
</UserControl>

Sample code usage restrictions
5/16/2014