Exemple #1
0
 public override void Initialize()
 {
     base.Initialize();
     ViewObject        = new PopUpButton();
     Widget.Menu       = new NSMenu();
     Widget.Activated += delegate {
         ApplicationContext.InvokeUserCode(EventSink.OnSelectionChanged);
         Widget.SynchronizeTitleAndSelectedItem();
         ResetFittingSize();
     };
 }
Exemple #2
0
 public override void Initialize()
 {
     base.Initialize();
     ViewObject  = new PopUpButton();
     Widget.Menu = new NSMenu();
     Widget.SizeToFit();
     Widget.Activated += delegate {
         EventSink.OnSelectionChanged();
         Widget.SynchronizeTitleAndSelectedItem();
         Widget.SizeToFit();
     };
 }