Pre loader

How to Customize the control handle of annotation?


Hi, Andrew. I want to change the style of the control handle of annotation, including color, size, shape and so on. Forthmore, I want to and a rotating handle, even the control handle of corner radius in BoxAnnotation. Could you give me some suggestions?

  • You must to post comments

Hi Wang,

The AnnotationBase.ResizingGripsStyle property allows you to template the control handles of the annotation.

For example:

<Style x:Key="GripStyle" TargetType="Thumb">
    <Setter Property="Background" Value="Red" />
    <Setter Property="Foreground" Value="Black" />
    <Setter Property="BorderBrush" Value="Purple" />
    <Setter Property="BorderThickness" Value="2" />
    <Setter Property="Width" Value="20" />
    <Setter Property="Height" Value="15" />
    <Setter Property="Template">
                <Ellipse Fill="{TemplateBinding Background}" Stroke="{TemplateBinding Foreground}" />
<s:BoxAnnotation Background="Green"
     ResizingGripsStyle="{StaticResource GripStyle}"
     Y2="7" />

Will change the resizing grip to an ellipse.

Please also see where we have the full control template of the resizing grips if you wish to do further customisation.

Best regards,

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies