public void RemoveView()
 {
     if (view != null)
     {
         ContentView.RemoveChild(view);
         view = null;
     }
 }
 public void SetView(LiteForms.Cocoa.View shapeView)
 {
     RemoveView();
     view = shapeView;
     ContentView.AddChild(shapeView);
     CenterView();
     view?.ApplyTransform(GetActualTranformation());
 }