Click or drag to resize

Window Class

Base window
Inheritance Hierarchy

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.5.3-dev
Syntax
public abstract class Window : Panel

The Window type exposes the following members.

Constructors
  NameDescription
Protected methodWindow
Initializes a new instance of the Window class.
Protected methodWindow(WindowIHandler)
Initializes a new instance of the Window with the specified handler
Top
Properties
  NameDescription
Public propertyBounds
Gets or sets the size and location of the window
Public propertyIcon
Gets or sets the icon for the window to show in the menu bar.
Public propertyLocation
Gets or sets the location of the window
Public propertyLogicalPixelSize
Gets the number of pixels per logical pixel when on a high DPI display.
Public propertyMaximizable
Gets or sets a value indicating whether this Window can be maximized.
Public propertyMenu
Gets or sets the menu bar for this window
Public propertyMinimizable
Gets or sets a value indicating whether this Window can be minimized.
Public propertyMovableByWindowBackground
Gets or sets a value indicating that the window can be moved by click+dragging the window background
Public propertyOpacity
Gets or sets the opacity of the window
Public propertyOwner
Gets or sets the owner of this window.
Public propertyResizable
Gets or sets a value indicating whether this Window is resizable.
Public propertyRestoreBounds
Gets the bounds of the window before it was minimized or maximized, or the current bounds if WindowState is Normal.
Public propertyScreen
Gets the screen this window is mostly contained in. Typically defined by the screen center of the window is visible.
Public propertyShowInTaskbar
Gets or sets a value indicating whether this Window will show in the taskbar.
Public propertyTitle
Gets or sets the title of the window
Public propertyToolBar
Gets or sets the tool bar for the window.
Public propertyTopmost
Gets or sets a value indicating whether this Window is above all other windows.
Public propertyWindowState
Gets or sets the state of the window.
Public propertyWindowStyle
Gets or sets the style of this window.
Top
Methods
  NameDescription
Public methodBringToFront
Brings the window in front of all other windows in the z-order.
Public methodClose
Closes the window
Protected methodGetCallback
Gets an instance of an object used to perform callbacks to the widget from handler implementations
(Overrides ControlGetCallback.)
Public methodMaximize
Public methodMinimize
Protected methodOnClosed
Raises the Closed event.
Protected methodOnClosing
Raises the Closing event.
Protected methodOnDataContextChanged
Raises the DataContextChanged event
(Overrides BindableWidgetOnDataContextChanged(EventArgs).)
Protected methodOnLocationChanged
Raises the LocationChanged event.
Protected methodOnLogicalPixelSizeChanged
Raises the LogicalPixelSizeChanged event.
Protected methodOnOwnerChanged
Raises the OwnerChanged event.
Protected methodOnWindowStateChanged
Raises the WindowStateChanged event.
Public methodSendToBack
Sends the window behind all other windows in the z-order.
Top
Events
  NameDescription
Public eventClosed
Occurs when the window is closed.
Public eventClosing
Occurs before the window is closed, giving an opportunity to cancel the close operation.
Public eventLocationChanged
Occurs when the Location of the window is changed.
Public eventLogicalPixelSizeChanged
Occurs when the LogicalPixelSize of the window is changed.
Public eventOwnerChanged
Occurs when the Owner is changed.
Public eventWindowStateChanged
Occurs when the WindowState is changed.
Top
Fields
  NameDescription
Public fieldStatic memberClosedEvent
Identifier for handlers when attaching the Closed event.
Public fieldStatic memberClosingEvent
Identifier for handlers when attaching the Closing event.
Public fieldStatic memberLocationChangedEvent
Identifier for handlers when attaching the LocationChanged event.
Public fieldStatic memberLogicalPixelSizeChangedEvent
Identifier for handlers when attaching the LogicalPixelSizeChanged event.
Public fieldStatic memberWindowStateChangedEvent
Identifier for handlers when attaching the WindowStateChanged event.
Top
See Also