Interface IWindow
Provides access to the methods and properties of the window.
public interface IWindow : IControl, IDisposable, IWin32Window
Properties
- CloseEnabled
Gets or sets a value indicating whether the window has an enabled close button.
- HasBorder
Gets or sets a value indicating whether the window has a border.
- HasSystemMenu
Gets or sets whether system menu is visible for this window.
- HasTitleBar
Gets or sets a boolean value indicating whether window has title bar.
- Icon
Gets or sets the icon for the window.
- IsActive
Gets a value indicating whether the window is the currently active window for this application.
- IsPopupWindow
Gets or sets a value indicating whether to create a special popup window.
- IsToolWindow
A tool window does not appear in the Windows taskbar or in the window that appears when the user presses ALT+TAB. On Windows, a tool window doesn't have minimize and maximize buttons.
- KeyPreview
Gets or sets a value indicating whether the form will receive key events before the event is passed to the control that has focus.
- MaximizeEnabled
Gets or sets a value indicating whether the window has an enabled maximize button.
- MinimizeEnabled
Gets or sets a value indicating whether the window has an enabled minimize button.
- Modal
Gets a value indicating whether this window is displayed modally.
- OwnedWindows
Gets an array of Window objects that represent all windows that are owned by this window.
- Owner
Gets or sets the window that owns this window.
- Resizable
Gets or sets a value indicating whether the window can be resized by user.
- ShowInTaskbar
Gets or sets a value indicating whether the form is displayed in the Windows or Linux taskbar.
- StartLocation
Gets or sets the position of the window when first shown.
- State
Gets or sets a value that indicates whether window is minimized, maximized, or normal.
- SupressEsc
Gets or sets whether to supress 'Esc' key.
- TopMost
Gets or sets a value indicating whether the window should be placed above all non-topmost windows and should stay above them, even when the window is deactivated.
Methods
- GetWindowKind()
Gets window kind (window, dialog, etc.).
Events
- AlwaysOnTopChanged
Occurs when the value of the TopMost property changes.
- CloseEnabledChanged
Occurs when the value of the CloseEnabled property changes.
- Closed
Occurs when the window is closed.
- Closing
Occurs before the window is closed.
- HasBorderChanged
Occurs when the value of the HasBorder property changes.
- HasSystemMenuChanged
Occurs when the value of the HasSystemMenu property changes.
- HasTitleBarChanged
Occurs when the value of the HasTitleBar property changes.
- IconChanged
Occurs when the value of the Icon property changes.
- IsToolWindowChanged
Occurs when the value of the IsToolWindow property changes.
- MaximizeEnabledChanged
Occurs when the value of the MaximizeEnabled property changes.
- MenuChanged
Occurs when the value of the "Menu" property changes.
- MinimizeEnabledChanged
Occurs when the value of the MinimizeEnabled property changes.
- OwnerChanged
Occurs when the value of the "Owner" property changes.
- ResizableChanged
Occurs when the value of the Resizable property changes.
- ShowInTaskbarChanged
Occurs when the value of the ShowInTaskbar property changes.
- StateChanged
Occurs when the value of the State property changes.
- StatusBarChanged
Occurs when the value of the "Statusbar" property changes.