摘要:1.创建一个基于.NetFramework或.NetCore的WPF应用程序。 2.在NuGet管理器中添加 Prism.Dryloc包 3.修改 App.xaml 的基类为PrismApplication /// <summary> /// Interaction logic for App.xa
阅读全文
摘要:Github:https://github.com/PrismLibrary/Prism NuGet:https://www.nuget.org/packages/prism.wpf 安装 Prism 项目模板:打开VS,菜单:扩展-->管理扩展,搜索 Prism WPF入门基础教程系列 https
阅读全文
摘要:<Grid Background="White"> <Grid.RowDefinitions> <RowDefinition Height="Auto"></RowDefinition> <RowDefinition></RowDefinition> <RowDefinition Height="A
阅读全文
摘要:<Window x:Class="PrismWpfBlankApp.Views.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsof
阅读全文
摘要:<StackPanel> <Button Command="{Binding OpenCommand}" Content="事件" /> <Button Command="{Binding PublishCommand}" Content="发布消息"/> <Button Command="{Bin
阅读全文
摘要:Region 的作用:在指定区域展示用户控件,是模块化的核心功能,其主要目的是弱化模块与模块之间的耦合关系。 一、定义XML区域: 1.1 使用XML设置区域名称 <ContentControl prism:RegionManager.RegionName="ContentRegion" /> 1.
阅读全文