Skip to content

IWindowService.Show<T> method

Shows the view model in a non-modal window and returns immediately, without waiting for the window to close.

Namespace: Eremex.AvaloniaUI.Controls.ApplicationServices
Assembly: Eremex.Common.Contracts.dll
NuGet Package: Eremex.Common.Contracts

Declaration

public void Show<T>(T viewModel, string caption = null)
    where T : IWindowAwareViewModel

Type Parameters

name description
T The type of the view model that drives the window.

Parameters

name type description
viewModel T The view model to display. It is attached to the window until the window closes.
caption string The window caption. When null, the caption is taken from Title.

See Also

Used in articles