# WindowInterop class

Translates between the framework free IWindow contract and the Avalonia window.

```csharp
public static class WindowInterop
```

## Public Members

| name | description |
| --- | --- |
| static [AsAvaloniaWindow](WindowInterop/AsAvaloniaWindow.md)(…) | The Avalonia window behind the contract. |
| static [AsWindow](WindowInterop/AsWindow.md)(…) | Presents an Avalonia window through the framework free contract the services take. |

## Remarks

The contracts assembly cannot reference Avalonia, so a window reaches a service as an IWindow. This is the single place where an Avalonia window is presented through that contract and resolved back from it.

## See Also

* namespace [Eremex.AvaloniaUI.Controls.ApplicationServices](./index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Avalonia.Controls.ApplicationServices.dll -->
