# IWindow interface

An application window, as the services here see it. A view model receives one from [`IWindowsManager`](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/IWindowsManager/index.md) and hands it back as the owner of the dialog it asks for, without ever naming a window type of the UI framework.

**Namespace:** [`Eremex.AvaloniaUI.Controls.ApplicationServices`](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/index.md)  
**Assembly:** `Eremex.Common.Contracts.dll`  
**NuGet Package:** [Eremex.Common.Contracts](https://www.nuget.org/packages/Eremex.Common.Contracts)

## Declaration

```csharp
public interface IWindow
```

## Properties

| name | description |
| --- | --- |
| [IsActive](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/IWindow/IsActive/index.md) { get; } | Whether this is the window the user is currently working in. |
| [Title](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/IWindow/Title/index.md) { get; } | The window caption. |

## Methods

| name | description |
| --- | --- |
| [Activate](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/IWindow/Activate/index.md)() | Brings the window to the front and gives it the input focus. |
| [Close](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/IWindow/Close/index.md)() | Closes the window. |

## Remarks

This assembly carries no reference to a UI framework, so a window cannot appear here as its framework type. The UI layer presents its own windows through this interface and resolves them back when the time comes to show a dialog, the same way the file dialog options are translated into the types the platform picker expects.

## See Also

* namespace [Eremex.AvaloniaUI.Controls.ApplicationServices](https://eremexcontrols.net/API/Eremex.AvaloniaUI.Controls.ApplicationServices/index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Common.Contracts.dll -->
