/// <summary> /// Called when [window state event]. /// </summary> /// <param name="evnt">The evnt.</param> /// <returns></returns> protected override bool OnWindowStateEvent(Gdk.EventWindowState evnt) { bool result = base.OnWindowStateEvent(evnt); if (evnt.NewWindowState == Gdk.WindowState.Withdrawn || evnt.NewWindowState == Gdk.WindowState.Iconified) { this.waveWidget.isMinimized = true; } else { this.waveWidget.isMinimized = false; } return(result); }
protected override bool OnWindowStateEvent(EventWindowState evnt) { if((evnt.ChangedMask & (Gdk.WindowState.Maximized | Gdk.WindowState.Fullscreen )) !=0) statusbar1.HasResizeGrip = (evnt.NewWindowState & (Gdk.WindowState.Maximized | Gdk.WindowState.Fullscreen )) !=0 ; return false; }