Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
595
Legend Series Marker When Using Custom Marker Templates
posted

In the XamFeatureBrowser I see there is a great example on how to make a Legend with a custom item template(XamDataChart--> Styling--> Legend Item Template). So I've implemented that into my project but the line

ContentTemplate="{Binding Series.ActualMarkerTemplate}"

has given me some problems because I am using custom marker datatemplates. My series items are created in codebehind and so my series item does not have a MarkerTemplate. Instead my series simply gets a marker type bound to it and the XamDataChart has all the marker templates defined for it( ex: CircleMarkerTemplate="{StaticResource CircleMarkerTemplate}").