Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions wpf/Maps/Markers.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,11 +120,11 @@ You can customize the marker appearance by using the [`MarkerTemplate`](https://

{% endhighlight %}
{% highlight c# hl_lines="3" %}
ShapeFileLayer shape = new ShapeFileLayer();
shape.Uri = "Maps.ShapeFiles.world1.shp";
shape.MarkerTemplate= this.Resources["markerTemplate"] as DataTemplate;
shape.Markers = view.Models;
this.maps.Layers.Add(shape);
ShapeFileLayer shape = new ShapeFileLayer();
shape.Uri = "Maps.ShapeFiles.world1.shp";
shape.MarkerTemplate= this.Resources["markerTemplate"] as DataTemplate;
shape.Markers = view.Models;
this.maps.Layers.Add(shape);
{% endhighlight %}
{% highlight c# tabtitle="MarkerDetails.cs" %}
public class MarkerDetails
Expand Down