GitHub - PrismLibrary/Prism-Samples-Forms: Samples that demonstrate how to use various Prism features with Xamarin.Forms
1
Prism Navigation
How to use Prism's Uri based navigation to reset the navigation stack, or add pages Modally or Non-Modally
2
Registering Services
How to use IContainerRegistry to register services to act as Singletons or Transients within your application.
3
Platform Specific Services
How to use Prism to auto inject platform specific dependencies that are registered with the IPlatformInitializer.
4
Delegate Commands
How to use DelegateCommands and ObservesCanExecute
4.1
Composite Commands
How to use CompositeCommands to invoke commands in multiple unrelated ViewModels from a single interaction.
5
Event Aggregator
How to use the IEventAggregator to raise and listen to events. This shows how to use a simple event with a primitive type payload, generic event with payload <T>, and event with custom EventArgs. It also demonstrated how to subscribe to events published in Xamarin.Forms inside native code.
6
Page Dialog Service
How to use the IPageDialogService to display alerts and action sheets from within your ViewModels.
7
Dialog Service
How to use the DialogService to provide highly customizable experiences within your application.
8
Tabbed Navigation
coming soon
9
Master Detail
How to use a master detail page with a content page and a tabbed page as children
10
Modules
How to use Prism modularization to separate the application logic using IModule, IModuleManager, ModuleCatalog.
11
Module Dependency
coming soon
12
ViewModelLocator
coming soon
13
ViewModel Initialization
How to properly use
IAutoInitialize, IInitialize, or IInitializeAsync to do a one time initialization of your ViewModel with the context you need based on the Navigation Parameters, or any other initialization you may need to do.
14
EventToCommandBehavior
How to use the EventToCommandBehavior to bind to ViewModel Commands even when there is no Command property on an element.
15
PageBehaviorFactory
coming soon
16
PageLifecycleAware
How use IPageLifecycleAware to execute code in your ViewModel when the Page appears / disappears.
17
XamlNavigation
How to do Prism navigation from within Xaml
18
DeviceService
How to use Prism's IDeviceService to get the device's runtime and idiom.
19
NavigationMode
How to use the NavigationMode enum to only act on something when navigating back to a view
20
Confirm Navigation
coming soon