Class WindowExtensions
Provides extension methods for a Window.
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 SourceConceal(Window)
Conceals the window.
Declaration
public static void Conceal(this Window window)
Parameters
| Type | Name | Description |
|---|---|---|
| Window | window | The window to conceal. |
Reveal(Window)
Reveals the window.
Declaration
public static void Reveal(this Window window)
Parameters
| Type | Name | Description |
|---|---|---|
| Window | window | The concealed window. |
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.