# WindowInterop.AsWindow method

Presents an Avalonia window through the framework free contract the services take.

```csharp
public static IWindow? AsWindow(this Window? window)
```

| parameter | description |
| --- | --- |
| window | The window to present, or `null`. |

## Return Value

The window as an IWindow, or `null` when *window* is `null`.

## See Also

* class [WindowInterop](../WindowInterop.md)
* namespace [Eremex.AvaloniaUI.Controls.ApplicationServices](../index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Avalonia.Controls.ApplicationServices.dll -->
