WPF MVVM框架- Prism.DryIOC例子

10 篇文章 0 订阅
5 篇文章 2 订阅

演示如何在WPF中使用各种Prism功能的示例。如果您刚开始使用Prism,建议您从第一个示例开始,然后按顺序(按顺序)从列表中移出。每个样本都基于先前样本的概念。演示如何在WPF中使用各种Prism功能的示例。如果您刚开始使用Prism,建议您从第一个示例开始,然后按顺序(按顺序)从列表中移出。每个样本都基于先前样本的概念。

官方例子是使用Prism.Unity,VS2019 ,本文中的例子是使用Prism.DryIOC,VS2017,.net4.8,希望对大家学习Prism有所帮助。

github地址

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
Interactivity - NotificationRequestLearn how to show popups using an InteractionRequest
Interactivity - ConfirmationRequestLearn how to prompt a confirmation dialog using a ConfirmationRequest
Interactivity - Custom ContentLearn how to use your own content for a dialog shown with InteractionRequest
Interactivity - Custom RequestCreate your own custom request to use with an InteractionRequest
Interactivity - InvokeCommandActionInvoke commands in response to any event
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值