public sealed class RunicWpfNavigationOptions Constructors
RunicWpfNavigationOptions
public RunicWpfNavigationOptions() No documentation.
Properties
CreateEntryScopes
public bool? CreateEntryScopes { get; set; } Gets or sets whether the navigator creates a service scope per entry built from the container (RunicNavigatorOptions.CreateEntryScopes). The default is on for a singleton navigator and off for a scoped one; a scoped navigator can't create entry scopes.
Dispatcher
public Dispatcher? Dispatcher { get; set; } Gets or sets the UI thread's dispatcher. The default is Application.Current's dispatcher, read when the model context is first resolved.
NavigatorLifetime
public ServiceLifetime NavigatorLifetime { get; set; } Gets or sets the lifetime of the RunicNavigator: ServiceLifetime.Singleton (the default) for one shell, or ServiceLifetime.Scoped for one navigator per window scope.
Priority
public DispatcherPriority Priority { get; set; } Gets or sets the priority of dispatched turns and hooks. The default is DispatcherPriority.Normal.
Methods
MapView
public RunicWpfNavigationOptions MapView<TViewModel, TView>() where TViewModel : class where TView : FrameworkElement Presents content of type TViewModel, or a type derived from it, with a new TView created from the entry's services.
Type parameters
TViewModelThe content type.
TViewThe view type.
Returns
These options.
UseViewNamingConvention
public RunicWpfNavigationOptions UseViewNamingConvention(params Assembly[] viewAssemblies) Finds views by name for content without a RunicWpfNavigationOptions.MapView pair: FooViewModel is presented by FooView, then FooPage, in the ViewModel's namespace and then with a ViewModels namespace segment replaced by Views, from the ViewModel's assembly and then from viewAssemblies. In a view assembly, a view in another namespace matches by name when exactly one view type has that name. Call it again to add assemblies.
Parameters
viewAssembliesMore assemblies to search, for ViewModels in a separate assembly.
Returns
These options.