Show / Hide Table of Contents

Class WindowExtensions

Provides extension methods for a Window.

Inheritance
object
WindowExtensions
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Sartorius.SAF.Presentation.Controls.Extensions
Assembly: Sartorius.SAF.Presentation.Controls.dll
Syntax
[SuppressMessage("Design", "CA1062:Validate arguments of public methods", Justification = "Parameter window is never null.")]
public static class WindowExtensions

Methods

View Source

Conceal(Window)

Conceals the window.

Declaration
public static void Conceal(this Window window)
Parameters
Type Name Description
Window window

The window to conceal.

View Source

Reveal(Window)

Reveals the window.

Declaration
public static void Reveal(this Window window)
Parameters
Type Name Description
Window window

The concealed window.

View Source

ShowDialogOverlayAware(Window)

Shows the window as a modal window while only disabling windows that are completely overlaid by an overlay effect.

Declaration
public static bool? ShowDialogOverlayAware(this Window window)
Parameters
Type Name Description
Window window

The window.

Returns
Type Description
bool?

A Nullable<T> value of type bool that specifies whether the activity was accepted (true) or canceled (false). The return value is the value of the DialogResult property before a window closes.

Remarks

Using this method will only deactivate windows that are completely overlaid.

Examples

The following example shows how to show a modal dialog that does only disable it's parent window.

See Also
ShowDialog()
  • View Source
Back to top Generated by DocFX