Class NavigatorBuilderCore
Provides the shared builder infrastructure used by navigator implementations.
Implements
Namespace: Singulink.UI.Navigation
Assembly: Singulink.UI.Navigation.dll
Syntax
public abstract class NavigatorBuilderCore : INavigatorBuilder
Properties
| Name | Description |
|---|---|
| MaxBackStackCachedDepth | Gets the maximum depth of cached views and view models in the back navigation stack. Views and view models that are deeper than this are disposed and will be recreated if navigated to again. Defaults to DefaultMaxBackStackCachedDepth. |
| MaxForwardStackCachedDepth | Gets the maximum depth of cached views and view models in the forward navigation stack. Views and view models that are deeper than this will be recreated if navigated to again. Defaults to DefaultMaxForwardStackCachedDepth. |
| MaxNavigationStacksSize | Gets the maximum number of entries in the forward and back navigation stack. Defaults to DefaultNavigationStacksSize. |
| RequiredParentViewType | Gets the type that parent views must implement (e.g. |
| Services | Gets or sets the service provider that will be used to resolve root services for view models. Defaults to an empty service provider. |
Methods
| Name | Description |
|---|---|
| AddDefaultDialogActivators() | Allows derived builders to register default dialog activators (typically via TryMapDefaultDialog(Type, Func<object>)) that should only apply when the consumer has not provided their own mapping. Invoked once when the navigator is being constructed, after the consumer's build action has run. |
| AddRoute(RoutePart) | Adds a route to the specified route part. Parent parts must be added before child parts. |
| AddRoutePart(RoutePart) | Adds a route part registration to the builder. |
| ConfigureNavigationStacks(int, int, int) | Configures navigation stack options. |
| MapDialog(Type, Func<object>) | Maps a dialog view model type to a factory that creates the framework-specific dialog object for it. |
| MapRoutedView(Type, Type) | Maps a routed view model type to a view type. Must be called before AddRoute() for that view model. |
| TryMapDefaultDialog(Type, Func<object>) | Maps a default dialog activator for the specified view model type only if no mapping has been registered for it. Used by framework-specific builders to register fallback dialog implementations (e.g. a built-in message dialog). |
| ValidateCore() | Performs framework-specific validation once the shared builder state has been populated. |