1 Star 0 Fork 297

cupoftea/AIStudio.Wpf.AClient

forked from Leo/AIStudio.Wpf.AClient 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Base_ManageModule.cs 891 Bytes
一键复制 编辑 原始数据 按行查看 历史
Leo 提交于 3年前 . 更换控件库
using Prism.Ioc;
using Prism.Modularity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Controls;
using AIStudio.Wpf.Controls;
namespace AIStudio.Wpf.Base_Manage
{
public class Base_ManageModule : IModule
{
public void OnInitialized(IContainerProvider containerProvider)
{
}
public void RegisterTypes(IContainerRegistry containerRegistry)
{
var assembly = Assembly.GetExecutingAssembly();
foreach (var type in assembly.GetTypes())
{
if (!type.IsSubclassOf(typeof(BaseDialog)) && type.IsSubclassOf(typeof(UserControl)))
{
containerRegistry.RegisterForNavigation(type, type.FullName);
}
}
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/lvylvm/aistudio.-wpf.-aclient.git
git@gitee.com:lvylvm/aistudio.-wpf.-aclient.git
lvylvm
aistudio.-wpf.-aclient
AIStudio.Wpf.AClient
net6-new

搜索帮助