[Back to home](Home) | [Back to Reference](Reference) | [View raw text](GeneratedDocs/FlatWindowCommands.md)
# FlatWindowCommands `class`
## Description
Contains a collection of commands that can be used with the [FlatWindow](FlatWindow) class (and any classes that inherit from it).
## Diagram
```mermaid
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph SolidShineUi
SolidShineUi.FlatWindowCommands[[FlatWindowCommands]]
end
```
## Members
### Properties
#### Public Static properties
| Type | Name | Methods |
| --- | --- | --- |
| `RoutedCommand` | [`CloseWindow`](#closewindow)
A WPF command that when executed, will close the specified window. | `get` |
| `RoutedCommand` | [`DisplaySystemMenu`](#displaysystemmenu)
A WPF command that when executed, will display the window's system menu in the top-left corner of the window. | `get` |
| `RoutedCommand` | [`Maximize`](#maximize)
A WPF command that when executed, will maximize the window (take up all space on the screen). | `get` |
| `RoutedCommand` | [`Minimize`](#minimize)
A WPF command that when executed, will minimize the window (hide in the taskbar). | `get` |
| `RoutedCommand` | [`Restore`](#restore)
A WPF command that when executed, will restore the window to its state prior to being minimized or maximized. | `get` |
## Details
### Summary
Contains a collection of commands that can be used with the [FlatWindow](FlatWindow) class (and any classes that inherit from it).
### Properties
#### CloseWindow
```csharp
public static RoutedCommand CloseWindow { get; }
```
##### Summary
A WPF command that when executed, will close the specified window.
#### Minimize
```csharp
public static RoutedCommand Minimize { get; }
```
##### Summary
A WPF command that when executed, will minimize the window (hide in the taskbar).
#### Maximize
```csharp
public static RoutedCommand Maximize { get; }
```
##### Summary
A WPF command that when executed, will maximize the window (take up all space on the screen).
#### Restore
```csharp
public static RoutedCommand Restore { get; }
```
##### Summary
A WPF command that when executed, will restore the window to its state prior to being minimized or maximized.
#### DisplaySystemMenu
```csharp
public static RoutedCommand DisplaySystemMenu { get; }
```
##### Summary
A WPF command that when executed, will display the window's system menu in the top-left corner of the window.
*Generated with* [*ModularDoc*](https://github.com/hailstorm75/ModularDoc)