RunicView<TViewModel> class

Namespace Runic.Application.Views · Runic.Application 0.7.0-preview.5

public abstract class RunicView<TViewModel> : IRunicView where TViewModel : class

Inherits or implements IRunicView.

A typed logical view. It owns no DOM and does not inherit Avalonia's control tree; the frontend chooses and renders the corresponding component.

Constructors

RunicView

protected RunicView()

Creates a view whose ViewModel is assigned later.

RunicView

protected RunicView(TViewModel dataContext)

Creates a view for dataContext.

Properties

DataContext

public virtual TViewModel? DataContext { get; set; }

The typed ViewModel presented by this view.