Skip to content

bozhiqian/Prism-Samples-Forms

Repository files navigation

Prism Samples Forms

This is a new implementation with the same functions as the original sample "Prism Samples Forms". Due to some old nuget packages and lagacy projects from original solution, upgrading from orignial repository might take more work so I create new solution instead.


Samples that demonstrate how to use various Prism features with Xamarin.Forms.

Solution Description
UsingCompositeCommands How to use CompositeCommands to invoke commands in multiple unrelated ViewModels from a single interaction.
UsingDependencyService How to use Prism to auto inject platform specific dependencies that are registered with Xamarin.Forms DependencyService.
UsingPageDialogService How to use the IPageDialogService to display alerts and action sheets from within your ViewModels.
UsingModules How to use Prism modularization to separate the application logic using IModule, IModuleManager, ModuleCatalog.
UsingEventAggregator 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 , and event with custom EventArgs. It also demonstrated how to subscribe to events published in Xamarin.Forms inside native code.
TabbedNavigation How to handle TabbedPages. This shows the use of IActiveAware on all Tabbed Children to handle the Switching Tabs, as well as initialization with INavigatingAware, and a strategy for Dynamic Loading of Children in the TabbedPage.
ContosoCookbook Contoso Cookbook is a classic Microsoft sample recipe app; first adapted for Xamarin.Forms by Jeff Prosise in 2015 and now updated to use Prism for Xamarin.Forms. Demonstrates how to use a TabbedPage with a DataTemplate for the tabs, and a ListView with DataTemplate for the recipe list on each tab; for a clean professional-looking UI.

About

Xamarin.Forms - Prism Samples Forms with .net standard 2.0 library as shared project.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages