I tried this sample in both WPF and SL application. I placed debug break points to the EndSaveEdits and SaveEditsFailed too. It would help to familiarize yourself with the feature layer first, it's field names and expected values. http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/BloomfieldHillsMichigan/LandusePlanning/F...XAML-code:
<UserControl.Resources>
<esri:SimpleFillSymbol x:Key="MyYellowFillSymbol"
Fill="YellowGreen"
BorderBrush="Transparent"
BorderThickness="2" />
<esri:SimpleFillSymbol x:Key="MyRedFillSymbol"
Fill="Red"
BorderBrush="Transparent"
BorderThickness="2" />
<esri:UniqueValueRenderer x:Key="MyUniqueValueRenderer"
Attribute="symbolname">
<esri:UniqueValueRenderer.Infos>
<esri:UniqueValueInfo Value="Residential - Very Low Density"
Symbol="{StaticResource MyRedFillSymbol}" />
<esri:UniqueValueInfo Value="Residential - Low Density"
Symbol="{StaticResource MyYellowFillSymbol}" />
</esri:UniqueValueRenderer.Infos>
</esri:UniqueValueRenderer>
</UserControl.Resources>
<Grid x:Name="LayoutRoot" Background="White">
<esri:Map x:Name="MyMap">
<esri:ArcGISTiledMapServiceLayer Url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" />
<esri:FeatureLayer ID="towers"
Url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/BloomfieldHillsMichigan/LandusePlanning/FeatureServer/2"
Where="1=1"
Renderer="{StaticResource MyUniqueValueRenderer}"
EndSaveEdits="FeatureLayer_EndSaveEdits"
SaveEditsFailed="FeatureLayer_SaveEditsFailed"
MouseLeftButtonDown="FeatureLayer_MouseLeftButtonDown">
<esri:FeatureLayer.OutFields>
<sys:String>symbolname</sys:String>
</esri:FeatureLayer.OutFields>
</esri:FeatureLayer>
</esri:Map>
</Grid>
Code-Behind: private void FeatureLayer_MouseLeftButtonDown(object sender, ESRI.ArcGIS.Client.GraphicMouseButtonEventArgs e)
{
Graphic g = e.Graphic;
string currentValue = (string) g.Attributes["symbolname"];
if(currentValue.Contains("Very"))
g.Attributes["symbolname"] = "Residential - Low Density";
else
g.Attributes["symbolname"] = "Residential - Very Low Density";
}
private void FeatureLayer_EndSaveEdits(object sender, ESRI.ArcGIS.Client.Tasks.EndEditEventArgs e)
{
}
private void FeatureLayer_SaveEditsFailed(object sender, ESRI.ArcGIS.Client.Tasks.TaskFailedEventArgs e)
{
}
Jennifer