NavigationShell class¶
Attributes: [RequiresDynamicCode("The method uses reflection and will not work in AOT environments.")] [RequiresUnreferencedCode("The method uses reflection and will not work in AOT environments.")]
Defined in
Namespace: CrissCross.MAUI
Assembly: CrissCross.MAUI.dll
Full name: CrissCross.MAUI.NavigationShell
Modifiers: public
Summary¶
NavigationShell.
Applies to
net10.0, net10.0-android36.0, net10.0-ios26.0, net10.0-macos26.0, net10.0-windows10.0.19041, net10.0-browserwasm1.0, net10.0-desktop1.0, net10.0-tvos26.0, net10.0-maccatalyst26.0, net9.0, net9.0-tvos18.0, net9.0-maccatalyst18.0, net9.0-windows10.0.19041, net9.0-browserwasm1.0, net9.0-desktop1.0, net9.0-macos15.0, net9.0-ios18.0, net9.0-android35.0, net8.0-macos15.0, net8.0-ios18.0, net8.0-maccatalyst18.0, net8.0-tvos18.0, netstandard2.1, net471
Class hierarchy
classDiagram
class NavigationShell
class Shell
Shell <|-- NavigationShell
class ISetNavigation {
<>
}
ISetNavigation <|.. NavigationShell
class IViewModelRoutedViewHost {
<>
}
IViewModelRoutedViewHost <|.. NavigationShell
class IActivatableView {
<>
}
IActivatableView <|.. NavigationShell
class IEnableLogger {
<>
}
IEnableLogger <|.. NavigationShell
class IUseNavigation {
<>
}
IUseNavigation <|.. NavigationShell
class IAmBuilt {
<>
}
IAmBuilt <|.. NavigationShell
class IDisposable {
<>
}
IDisposable <|.. NavigationShell
Inherits from: Shell
Implements: ISetNavigation, IViewModelRoutedViewHost, IActivatableView, IEnableLogger, IUseNavigation, IAmBuilt, IDisposable
Constructors¶
| Name | Summary |
|---|---|
| .ctor | Initializes a new instance of the [NavigationShell](# class. |
Properties¶
| Name | Summary |
|---|---|
| CanNavigateBack | Gets or sets a value indicating whether [navigate back is enabled]. |
| CanNavigateBackObservable | Gets the can navigate back observable. |
| CurrentViewModel | Gets the current view model. |
| Name | Gets or sets the name of the host. |
| HostName | Gets or sets the host name used for navigation. |
| NavigateBackIsEnabled | Gets or sets a value indicating whether [navigate back is enabled]. |
| NavigationStack | Gets the navigation stack. |
| RequiresSetup | Gets a value indicating whether [requires setup]. |
| ViewLocator | Gets or sets the view AppLocator. |
Fields¶
| Name | Summary |
|---|---|
| static CanNavigateBackProperty | The navigate back is enabled property. |
| static NameProperty | The host name property. |
| static NavigateBackIsEnabledProperty | The navigate back is enabled property. |
Methods¶
| Name | Summary |
|---|---|
| ClearHistory | Clears the history. |
| Navigate | Navigates the ViewModel contract. |
| NavigateAndReset | Navigates and resets. |
| NavigateBack | Navigates back. |
| Refresh | Refreshes this instance. |
| Setup | Setups this instance. |
| Dispose | Releases unmanaged and - optionally - managed resources. |
| static ToPage | Converts to page. |