Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Class: RT.Util.Forms.ManagedWindow

  • Assembly: RT.Util, Version=1.0.0.9999, Culture=neutral, PublicKeyToken=null
  • Namespace: RT.Util.Forms
  • Show inherited types...
  • Show implemented interfaces...

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
  • Virtual
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

boolDetermines whether the current managed form is maximised, or is minimised and would be maximised if restored.
bool
  • Virtual
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).
boolDetermines if the current managed form is minimised.
doubleGets the height of the form when in normal state (i.e. not minimized or maximized).
doubleGets the X-coordinate of the form when in normal state (i.e. not minimized or maximized).
doubleGets the Y-coordinate of the form when in normal state (i.e. not minimized or maximized).
doubleGets 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.