Click or drag to resize

NavigatorSinglePage Class

Handles creation of a new Page and association of the viewmodel
Inheritance Hierarchy
SystemObject
  Cauldron.ActivatorFactoryINavigator
    Cauldron.XAML.NavigationNavigatorSinglePage

Namespace:  Cauldron.XAML.Navigation
Assembly:  Cauldron.Win32.WPF (in Cauldron.Win32.WPF.dll) Version: 3.2.0.1 (3.2.0.1)
Syntax
C#
public sealed class NavigatorSinglePage : Factory<INavigator>, 
	INavigator

The NavigatorSinglePage type exposes the following members.

Properties
  NameDescription
Public propertyCanGoBack
Gets a value that indicates whether there is at least one entry in back navigation history.
Public propertyCanGoForward
Gets a value that indicates whether there is at least one entry in forward navigation history.
Top
Methods
  NameDescription
Public methodFree
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

This does not dispose the singleton object itself, only the content of Current. This will also destroy the singleton instance that is managed by the Factory.

(Inherited from FactoryT.)
Public methodGoBack
Navigates to the most recent item in back navigation history, if a Frame manages its own navigation history.
Public methodGoForward
Navigates to the most recent item in forward navigation history, if a Frame manages its own navigation history.
Public methodNavigateAsync(Type)
Handles creation of a new page or window and association of the viewmodel
Public methodNavigateAsync(Type, Object)
Causes the window or page to load content represented by the specified IViewModel, also passing a parameter to be used to construct the view model.
Public methodNavigateAsyncT
Causes the window or page to load content represented by the specified IViewModel.
Public methodNavigateAsyncT(FuncTask)
Create a new ContentDialog or Flyout with the view defined by the view model, depending on the views definition.
Public methodNavigateAsyncT(Object)
Causes the window or page to load content represented by the specified IViewModel, also passing a parameter to be used to construct the view model.
Public methodNavigateAsyncT(FuncTask, Object)
Create a new ContentDialog or Flyout with the view defined by the view model, depending on the views definition, also passing a parameter to be used to construct the view model.
Public methodNavigateAsyncT, TResult(FuncTResult, Task)
Create a new ContentDialog or Flyout with the view defined by the view model, depending on the views definition.
Public methodNavigateAsyncT, TResult(FuncTResult, Task, Object)
Create a new ContentDialog or Flyout with the view defined by the view model, depending on the views definition, also passing a parameter to be used to construct the view model.
Public methodTryClose
Tries to close a view model associated popup
Public methodTryCloseFocusedWindow
Closes the current focused Window.
Top
Events
  NameDescription
Public eventPropertyChanged
Occurs when a property value changes.
Top
Extension Methods
  NameDescription
Public Extension MethodCode exampleAs(Type)Overloaded.
Converts a type using the implicit or explicit operators. If both fails it will try to convert the value with ChangeType(Object, Type).
(Defined by ExtensionsConvertions.)
Public Extension MethodCode exampleAs(Type, Type)Overloaded.
Converts a type using the implicit or explicit operators. If both fails it will try to convert the value with ChangeType(Object, Type).
(Defined by ExtensionsConvertions.)
Public Extension MethodCode exampleAsTOverloaded.
Performs a cast between compatible reference types. If a convertion is not possible then null is returned. As a last resort it will use ChangeType(Object, Type).

Tries to use the implicit and explicit operators if exists when convertion with 'as' returns null.

(Defined by ExtensionsConvertions.)
Public Extension MethodCode exampleCreateTypeT
Creates a new Type that implements the properties of an interface defined by T and copies all value of anon to the new object.
(Defined by ExtensionsInterception.)
Public Extension MethodGetPropertyNonPublicValueT
Searches for the specified property, using the specified binding constraints and returns its value.

Default BindingFlags are Instance and NonPublic

(Defined by ExtensionsReflection.)
Public Extension MethodGetPropertyValue(String, BindingFlags)Overloaded.
Searches for the specified property, using the specified binding constraints and returns its value.
(Defined by ExtensionsReflection.)
Public Extension MethodGetPropertyValueT(String)Overloaded.
Searches for the specified property, using the specified binding constraints and returns its value.

Default BindingFlags are Instance and Public

(Defined by ExtensionsReflection.)
Public Extension MethodGetPropertyValueT(String, BindingFlags)Overloaded.
Searches for the specified property, using the specified binding constraints and returns its value.
(Defined by ExtensionsReflection.)
Public Extension MethodMapToT
Maps all properties and fields of an instance to another instance. The Clone() method is used to copy an instance if exist.

Mapping fails on jagged and multidimensional array. Classes without parameterless constructor will stay null.

(Defined by ExtensionsCloning.)
Public Extension MethodToLong
Tries to convert a Object to an Int64. Returns MinValue if target cannot be parsed.
(Defined by ExtensionsConvertions.)
Public Extension MethodToStringEx(String)Overloaded.
Converts the value of this instance to its equivalent string representation, using the specified format.

The following custom formatter are already added: ByteSizeFormatter, MetricUnitFormatter

(Defined by Extensions.)
Public Extension MethodToStringEx(String, CultureInfo)Overloaded.
Converts the value of this instance to its equivalent string representation, using the specified format.

The following custom formatter are already added: ByteSizeFormatter, MetricUnitFormatter

(Defined by Extensions.)
Public Extension MethodTryDispose
Tries to performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

This will dispose an object if it implements the IDisposable interface.

(Defined by Extensions.)
Top
See Also