Solved! Go to Solution.
public MainWindow() { InitializeComponent(); ESRI.ArcGIS.Client.LayerCollection.LayersInitializedHandler layerInitializedHandler = null; BitmapImage bi0 = new BitmapImage(new Uri("pack://application:,,,/Aqua_Ball_Green_32.png")); PictureMarkerSymbol pms = new PictureMarkerSymbol() { Source = bi0, }; layerInitializedHandler += (s, e) => { MyMap.Layers.LayersInitialized -= layerInitializedHandler; FeatureLayer featureLayer = new FeatureLayer() { ID = "Fire Incidents", Url = "http://sampleserver6.arcgisonline.com/arcgis/rest/services/Wildfire/FeatureServer/0", RendererTakesPrecedence = false, }; EventHandler updateCompleted = null; updateCompleted += (x, y) => { featureLayer.UpdateCompleted -= updateCompleted; foreach (var graphic in featureLayer.Graphics) { if (graphic.Geometry is MapPoint) { graphic.Symbol = pms; } } }; featureLayer.UpdateCompleted += updateCompleted; MyMap.Layers.Add(featureLayer); }; MyMap.Layers.LayersInitialized += layerInitializedHandler; } <Grid> <esri:Map x:Name="MyMap" UseAcceleratedDisplay="True"> <esri:ArcGISTiledMapServiceLayer ID="World Topo Map" Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/> </esri:Map> </Grid>
public MainWindow() { InitializeComponent(); ESRI.ArcGIS.Client.LayerCollection.LayersInitializedHandler layerInitializedHandler = null; BitmapImage bi0 = new BitmapImage(new Uri("pack://application:,,,/Aqua_Ball_Green_32.png")); PictureMarkerSymbol pms = new PictureMarkerSymbol() { Source = bi0, }; layerInitializedHandler += (s, e) => { MyMap.Layers.LayersInitialized -= layerInitializedHandler; FeatureLayer featureLayer = new FeatureLayer() { ID = "Fire Incidents", Url = "http://sampleserver6.arcgisonline.com/arcgis/rest/services/Wildfire/FeatureServer/0", RendererTakesPrecedence = false, }; EventHandler updateCompleted = null; updateCompleted += (x, y) => { featureLayer.UpdateCompleted -= updateCompleted; foreach (var graphic in featureLayer.Graphics) { if (graphic.Geometry is MapPoint) { graphic.Symbol = pms; } } }; featureLayer.UpdateCompleted += updateCompleted; MyMap.Layers.Add(featureLayer); }; MyMap.Layers.LayersInitialized += layerInitializedHandler; } <Grid> <esri:Map x:Name="MyMap" UseAcceleratedDisplay="True"> <esri:ArcGISTiledMapServiceLayer ID="World Topo Map" Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/> </esri:Map> </Grid>