static bool IsDifferent(EtoPopUpButton field, NSMenu menu) { var fieldTitle = Messaging.IntPtr_objc_msgSend(field.Handle, sel_GetTitle); var menuTitle = Messaging.IntPtr_objc_msgSend(menu.Handle, sel_GetTitle); return(fieldTitle != menuTitle); }
public ComboBoxHandler() { Control = new EtoPopUpButton { Handler = this }; Control.Activated += HandleActivated; }
public ComboBoxHandler() { Control = new EtoPopUpButton { Handler = this }; Control.Activated += delegate { Widget.OnSelectedIndexChanged(EventArgs.Empty); }; }