PagesBuilder
- Kind: Class
- Namespace: SkeleKit
Methods
AddSingleton
Registers a view-only page built once and kept for the application's lifetime.
| Type parameter | Summary |
|---|---|
ContentView TView | The page type. |
Returns
PagesBuilder: The builder instance for chaining calls.
AddSingleton
Registers a view-only page built once and kept for the application's lifetime.
| Parameter | Summary |
|---|---|
Func<IServiceProvider, TView> create | Creates the page from the application's services. |
| Type parameter | Summary |
|---|---|
ContentView TView | The page type. |
Returns
PagesBuilder: The builder instance for chaining calls.
AddSingleton
Registers a view-only page built once and kept for the application's lifetime.
| Parameter | Summary |
|---|---|
Func<TView> create | Creates the page. |
| Type parameter | Summary |
|---|---|
ContentView TView | The page type. |
Returns
PagesBuilder: The builder instance for chaining calls.
AddSingleton
Registers an existing view-only page for the application's lifetime.
| Parameter | Summary |
|---|---|
TView instance | The page instance to register. |
| Type parameter | Summary |
|---|---|
ContentView TView | The page type. |
Returns
PagesBuilder: The builder instance for chaining calls.
AddSingleton
Registers a ViewModel-backed page built once and kept for the application's lifetime.
| Parameter | Summary |
|---|---|
Func<IServiceProvider, TViewModel, TView> create | Creates the page from the application's services and its ViewModel. |
| Type parameter | Summary |
|---|---|
(class) TViewModel | The ViewModel type. |
ContentView TView | The page type. |
Returns
PagesBuilder: The builder instance for chaining calls.
AddSingleton
Registers a ViewModel-backed page built once and kept for the application's lifetime.
| Parameter | Summary |
|---|---|
Func<TViewModel, TView> create | Creates the page from its ViewModel. |
| Type parameter | Summary |
|---|---|
(class) TViewModel | The ViewModel type. |
ContentView TView | The page type. |
Returns
PagesBuilder: The builder instance for chaining calls.
AddTransient
Registers a view-only page that is recreated for each presentation.
| Type parameter | Summary |
|---|---|
ContentView TView | The page type. |
Returns
PagesBuilder: The builder instance for chaining calls.
AddTransient
Registers a view-only page that is recreated for each presentation.
| Parameter | Summary |
|---|---|
Func<IServiceProvider, TView> create | Creates the page from the application's services. |
| Type parameter | Summary |
|---|---|
ContentView TView | The page type. |
Returns
PagesBuilder: The builder instance for chaining calls.
AddTransient
Registers a view-only page that is recreated for each presentation.
| Parameter | Summary |
|---|---|
Func<TView> create | Creates the page. |
| Type parameter | Summary |
|---|---|
ContentView TView | The page type. |
Returns
PagesBuilder: The builder instance for chaining calls.
AddTransient
Registers a ViewModel-backed page that is recreated for each presentation.
| Parameter | Summary |
|---|---|
Func<IServiceProvider, TViewModel, TView> create | Creates the page from the application's services and its ViewModel. |
| Type parameter | Summary |
|---|---|
(class) TViewModel | The ViewModel type. |
ContentView TView | The page type. |
Returns
PagesBuilder: The builder instance for chaining calls.
AddTransient
Registers a ViewModel-backed page that is recreated for each presentation.
| Parameter | Summary |
|---|---|
Func<TViewModel, TView> create | Creates the page from its ViewModel. |
| Type parameter | Summary |
|---|---|
(class) TViewModel | The ViewModel type. |
ContentView TView | The page type. |
Returns
PagesBuilder: The builder instance for chaining calls.