# IWindowService.Show&lt;T&gt; method

Shows the view model in a non-modal window and returns immediately, without waiting for the window to close.

```csharp
public void Show<T>(T viewModel, string caption = null)
    where T : IWindowAwareViewModel
```

| parameter | description |
| --- | --- |
| T | The type of the view model that drives the window. |
| viewModel | The view model to display. It is attached to the window until the window closes. |
| caption | The window caption. When `null`, the caption is taken from [`Title`](../IWindowAwareViewModel/Title.md). |

## See Also

* interface [IWindowAwareViewModel](../IWindowAwareViewModel.md)
* interface [IWindowService](../IWindowService.md)
* namespace [Eremex.AvaloniaUI.Controls.ApplicationServices](../index.md)

<!-- DO NOT EDIT: generated by xmldocmd for Eremex.Common.Contracts.dll -->
