<s:FastLineRenderableSeries.PointMarker>
<s:SpritePointMarker PointMarkerTemplate="{StaticResource AnyWpfControlTemplateCanGoHere}"/>
Based on the user selection from many options, I need to set this template at runtime. The template is already been defined in generic dictionary which is like this
<ControlTemplate x:Key="RightTriangleAnnotations">
<Polygon Points="0 0, 20 20,0 20" x:Name="poly" Fill="Green" Stroke="Red"></Polygon>
My code is something like this
var pointMarker = new SpritePointMarker();
pointMarker.Template = **Here the template should go**
renderSeries.PointMarker = pointMarker;
Any idea how could I set the template at runtime.