protected void RightClick() { BaseController controller = serviceManager.Get <IFlowSharpCanvasService>().ActiveController; GraphicElement hoverShape = HoverShape; // Sometimes this is null. Not sure why. hoverShape?.RightClick(); }