C# Class Eto.Forms.Window

Base window
Inheritance: Eto.Forms.Panel
Mostrar archivo Open project: picoe/Eto Class Usage Examples

Private Properties

Property Type Description
Window System

Public Methods

Method Description
BringToFront ( ) : void

Brings the window in front of all other windows in the z-order.

Close ( ) : void

Closes the window

Note that once a window is closed, it cannot be shown again in most platforms.

Maximize ( ) : void

Sets WindowState to Eto.Forms.WindowState.Maximized

Minimize ( ) : void

Sets WindowState to Eto.Forms.WindowState.Minimized

SendToBack ( ) : void

Sends the window behind all other windows in the z-order.

Protected Methods

Method Description
GetCallback ( ) : object

Gets an instance of an object used to perform callbacks to the widget from handler implementations

OnClosed ( EventArgs e ) : void

Raises the Closed event.

OnClosing ( CancelEventArgs e ) : void

Raises the Closing event.

OnDataContextChanged ( EventArgs e ) : void

Raises the BindableWidget.DataContextChanged event

Implementors may override this to fire this event on child widgets in a heirarchy. This allows a control to be bound to its own BindableWidget.DataContext, which would be set on one of the parent control(s).

OnLocationChanged ( EventArgs e ) : void

Raises the LocationChanged event.

OnLogicalPixelSizeChanged ( EventArgs e ) : void

Raises the LogicalPixelSizeChanged event.

OnOwnerChanged ( EventArgs e ) : void

Raises the OwnerChanged event.

OnWindowStateChanged ( EventArgs e ) : void

Raises the WindowStateChanged event.

Window ( IHandler handler ) : System

Initializes a new instance of the Window with the specified handler

Private Methods

Method Description
Window ( ) : System

Method Details

BringToFront() public method

Brings the window in front of all other windows in the z-order.
public BringToFront ( ) : void
return void

Close() public method

Closes the window
Note that once a window is closed, it cannot be shown again in most platforms.
public Close ( ) : void
return void

GetCallback() protected method

Gets an instance of an object used to perform callbacks to the widget from handler implementations
protected GetCallback ( ) : object
return object

Maximize() public method

Sets WindowState to Eto.Forms.WindowState.Maximized
public Maximize ( ) : void
return void

Minimize() public method

Sets WindowState to Eto.Forms.WindowState.Minimized
public Minimize ( ) : void
return void

OnClosed() protected method

Raises the Closed event.
protected OnClosed ( EventArgs e ) : void
e System.EventArgs Event arguments
return void

OnClosing() protected method

Raises the Closing event.
protected OnClosing ( CancelEventArgs e ) : void
e CancelEventArgs Event arguments
return void

OnDataContextChanged() protected method

Raises the BindableWidget.DataContextChanged event
Implementors may override this to fire this event on child widgets in a heirarchy. This allows a control to be bound to its own BindableWidget.DataContext, which would be set on one of the parent control(s).
protected OnDataContextChanged ( EventArgs e ) : void
e System.EventArgs Event arguments
return void

OnLocationChanged() protected method

Raises the LocationChanged event.
protected OnLocationChanged ( EventArgs e ) : void
e System.EventArgs Event arguments
return void

OnLogicalPixelSizeChanged() protected method

Raises the LogicalPixelSizeChanged event.
protected OnLogicalPixelSizeChanged ( EventArgs e ) : void
e System.EventArgs Event arguments
return void

OnOwnerChanged() protected method

Raises the OwnerChanged event.
protected OnOwnerChanged ( EventArgs e ) : void
e System.EventArgs Event arguments
return void

OnWindowStateChanged() protected method

Raises the WindowStateChanged event.
protected OnWindowStateChanged ( EventArgs e ) : void
e System.EventArgs Event arguments
return void

SendToBack() public method

Sends the window behind all other windows in the z-order.
public SendToBack ( ) : void
return void

Window() protected method

Initializes a new instance of the Window with the specified handler
protected Window ( IHandler handler ) : System
handler IHandler Pre-created handler to attach to this instance
return System