SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.


I have a custom annotation class that I would like to bind the geometries.



    public GeometryGroup Elements
        get { return _elements; }
            _elements = value;

When I create the class in code it only works if Path was set in xaml, doesn’t work if set in code.

            Path p = new Path();
            p.Data = Geometry.Parse("m 0 0 10 0 10 10 0 10 z");             
            GeometryGroup g = new GeometryGroup();
            CustomPathAnnotation cpa = new CustomPathAnnotation()
                Elements = g,
                X1 = .55,
                Y1 = .5, 
                CoordinateMode = AnnotationCoordinateMode.Relative,
                XAxisId = "DefaultAxisId",
                YAxisId = "DefaultAxisId",
                Visibility = Visibility.Visible
  • Yuriy
    Hi Dan, I’m not sure why it doesn’t work, there shouldn’t be any diference between setting a property in XAML or in code. Could you post the full code of your custom annotation class here for us to take a look?
  • You must to post comments


I got it to work using the following:

    <Polygon x:Name="ptPolygon" Points="{Binding polyPoints}" Stretch="Fill" Fill="{Binding polyFill}" Stroke="{Binding polyStroke}" />
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.