Jump to content
Software FX Community

Annotations - creating a movable and sizable annotation.


AlexeyRedko

Recommended Posts

  • 2 weeks later...

We do not support moving and/or sizing annotations as we do in WinForms.

You might want to try to use the Adorner API, note that this sample will draw adorners around all annotation elements, you would probably want to play with the visibility so that only one of them is visible at a time and also handle event to support moving and/or sizing

AdornerLayer myAdornerLayer
= AdornerLayer.GetAdornerLayer(chart1);
foreach(UIElement uiElem in
annotations.Children)
  myAdornerLayer.Add(new
SimpleCircleAdorner(uiElem));

You can use the SimpleCircleAdorner class and more info about the Adorner API here   

JuanC

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...