Esempio n. 1
0
		internal void Connect (NSViewContainer container)
		{
			this.container = container;
			cw = new WidgetWithNativeWindow (this);
			cw.Add (embeddedWidget);
			container.Add (cw);
			cw.Show ();
		}
Esempio n. 2
0
 internal void Connect(NSViewContainer container)
 {
     this.container = container;
     cw             = new WidgetWithNativeWindow(this);
     cw.Add(embeddedWidget);
     container.Add(cw);
     cw.Show();
 }
Esempio n. 3
0
 public override void RemoveFromSuperview()
 {
     base.RemoveFromSuperview();
     if (container != null)
     {
         container.Remove(cw);
         container = null;
     }
 }
Esempio n. 4
0
        public override void ViewDidMoveToSuperview()
        {
            base.ViewDidMoveToSuperview();
            var c = NSViewContainer.GetContainer(Superview);

            if (c != null)
            {
                Connect(c);
            }
        }
Esempio n. 5
0
		public override void RemoveFromSuperview ()
		{
			base.RemoveFromSuperview ();
			if (container != null) {
				container.Remove (cw);
				container = null;
			}
		}