ReactiveRunicViewLocator class

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

public sealed class ReactiveRunicViewLocator : IRunicViewLocator

Inherits or implements IRunicViewLocator.

Adapts ReactiveUI's AOT-safe typed view lookup to Runic presentation.

Constructors

ReactiveRunicViewLocator

public ReactiveRunicViewLocator(IViewLocator locator)

Adapts ReactiveUI's AOT-safe typed view lookup to Runic presentation.

Methods

Locate

public TView Locate<TView, TViewModel>() where TView : class, IRunicView where TViewModel : class

Resolves the default view for TViewModel.

Documentation from IRunicViewLocator.Locate.

Locate

public TView Locate<TView, TViewModel>(string? contract) where TView : class, IRunicView where TViewModel : class

Resolves the view registered for contract, or the default view when it is null.

Exceptions

InvalidOperationException

No matching view is registered.

Documentation from IRunicViewLocator.Locate.