安裝prism包:
添加引用?
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Threading.Tasks;
using System.Windows;
using Prism.DryIoc;
using Prism.Ioc;
namespace PrismDemo
{
/// <summary>
/// App.xaml 的交互邏輯
/// </summary>
public partial class App : PrismApplication
{
protected override Window CreateShell()
{
return Container.Resolve<MainWindow>();
}
protected override void RegisterTypes(IContainerRegistry containerRegistry)
{
}
}
}
?修改完上述,重新生成項(xiàng)目
安裝Prism項(xiàng)目模板
?安裝過(guò)程中關(guān)閉Visual Studio,安裝完畢再打開(kāi),即可創(chuàng)建prism框架的項(xiàng)目。文章來(lái)源:http://www.zghlxwxcb.cn/news/detail-726195.html
文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-726195.html
到了這里,關(guān)于wpf中prism框架的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!