public ManagedGtkNSViewHostControl(ICocoaTextViewHost textViewHost) { if (textViewHost == null) { throw new ArgumentNullException(nameof(textViewHost)); } GtkView = new Gtk.GtkNSViewHost(textViewHost.HostControl); GtkView.Show(); }
public CustomMacPanedHandle(Gtk.Paned parent) : base(parent) { VisibleWindow = false; HPanedThin.InitStyle(parent, 1); horizontal = parent is HPanedThin; handle = new MacPanedHandleView(parent); host = new Gtk.GtkNSViewHost(handle, NSWindowOrderingMode.Above); GrabAreaSize = HandleGrabWidth; Add(host); host.Show(); }
protected override void OnDestroyed() { host = null; handle = null; base.OnDestroyed(); }