- Assembly: RT.Util, Version=1.0.0.9999, Culture=neutral, PublicKeyToken=null
- Namespace: RT.Util.Forms
- Show inherited types...
Inherits from:
- System.Windows.Window
- System.Windows.Controls.ContentControl
- System.Windows.Controls.Control
- System.Windows.FrameworkElement
- System.Windows.UIElement
- System.Windows.Media.Visual
- System.Windows.DependencyObject
- System.Windows.Threading.DispatcherObject
- Show implemented interfaces...
Implements:
- System.Windows.Markup.IAddChild
- System.Windows.Media.Animation.IAnimatable
- System.Windows.IFrameworkInputElement
- System.Windows.Markup.IHaveResources
- System.Windows.IInputElement
- System.Windows.Markup.IQueryAmbient
- System.Windows.Media.Composition.DUCE.IResource
- System.ComponentModel.ISupportInitialize
- System.Windows.IWindowService
Summary
A window which has all the proper minimize/restore methods, and which remembers its position and size between instances of the application.
The size/position/state values are automatically reflected in the settings object whenever the user resizes or moves the window. If XAML
supplies an initial size, that size will be used whenever no previous size is available (such as first run).
Constructors
| We need a default constructor for the WPF designer to work. Don't invoke this or else the settings won't work. |
| Initialises a new managed window. |
Instance methods
void | |
Shows the form properly: if it is visible but minimized it will be restored
and activated; otherwise the base implementation of Show will be invoked.
|
Instance properties
bool | | Determines whether the current managed form is maximised, or is minimised and would be maximised if restored. |
bool | | To make the window maximized by default (i.e. on first run, before the user has had a chance to move/resize the window),
override this property and return true. This property is read from the window constructor. Do not use XAML to set Maximized to true
because ManagedWindow will not be able to override that without flicker (and thus doesn't support that at all). |
bool | | Determines if the current managed form is minimised. |
double | | Gets the height of the form when in normal state (i.e. not minimized or maximized). |
double | | Gets the X-coordinate of the form when in normal state (i.e. not minimized or maximized). |
double | | Gets the Y-coordinate of the form when in normal state (i.e. not minimized or maximized). |
double | | Gets the width of the form when in normal state (i.e. not minimized or maximized). |
Nested types
| Holds the settings of the ManagedWindow. |
| Stores the size, position and maximized state of the form. |