Re: Set annotation location
Posted: Thu Feb 06, 2020 2:28 pm
I have now fixed it, moved the CanMove = false, etc, to the AnnotationBuildingFinished event. Now works as expected. Thanks for your help
Code: Select all
private void annotationViewer_AnnotationBuildingFinished(object sender, AnnotationViewEventArgs e)
{
if (e.AnnotationView != null)
{
// Prevent the interation controllers from showing, since they can't be used till a tool is unselected
e.AnnotationView.CanMove = false;
e.AnnotationView.CanResize = false;
e.AnnotationView.CanRotate = false;
}
}