Home

Awesome

Prism Samples WPF

Samples that demonstrate how to use various Prism features with WPF. If you are just getting started with Prism, it is recommended that you start from the first sample, and work your way down the list sequentially (in order). Each sample builds on the previous sample's concept.

TopicDescription
Bootstrapper and the ShellCreate a basic bootstrapper and shell
RegionsCreate a region
Custom Region AdapterCreate a custom region adapter for the StackPanel
View DiscoveryAutomatically inject views with View Discovery
View InjectionManually add and remove views using View Injection
View Activation/DeactivationManually activate and deactivate views
Modules with App.configLoad modules using an App.config file
Modules with CodeLoad modules using code
Modules with DirectoryLoad modules from a directory
Modules loaded manuallyLoad modules manually using the IModuleManager
ViewModelLocatorusing the ViewModelLocator
ViewModelLocator - Change ConventionChange the ViewModelLocator naming conventions
ViewModelLocator - Custom RegistrationsManually register ViewModels for specific views
DelegateCommandUse DelegateCommand and DelegateCommand<T>
CompositeCommandsLearn how to use CompositeCommands to invoke multiple commands as a single command
IActiveAware CommandsMake your commands IActiveAware to invoke only the active command
Event AggregatorUsing the IEventAggregator
Event Aggregator - Filter EventsFiltering events when subscribing to events
RegionContextPass data to nested regions using the RegionContext
Region NavigationSee how to implement basic region navigation
Navigation CallbackGet notifications when navigation has completed
Navigation ParticipationLearn about View and ViewModel navigation participation with INavigationAware
Navigate to existing ViewsControl view instances during navigation
Passing ParametersPass parameters from View/ViewModel to another View/ViewModel
Confirm/cancel NavigationUse the IConfirmNavigationReqest interface to confirm or cancel navigation
Controlling View lifetimeAutomatically remove views from memory with IRegionMemberLifetime
Navigation JournalLearn how to use the Navigation Journal
Dialog ServiceLearn how to use the Dialog Service
Styling DialogLearn how to style the dialog
Using Custom WindowLearn how to use a custom window
Interactivity - InvokeCommandActionInvoke commands in response to any event