Added CSharp, Nots, and Wpf directories with various practice exercises and projects. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
34 lines
911 B
C#
34 lines
911 B
C#
|
|
using Prism.Ioc;
|
|
using Prism.Modularity;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using ModuleB.ViewModels;
|
|
using ModuleB.Views;
|
|
|
|
namespace ModuleB
|
|
{
|
|
public class ModuleBProfile : IModule
|
|
{
|
|
public void OnInitialized(IContainerProvider containerProvider)
|
|
{
|
|
}
|
|
|
|
/// <summary>
|
|
/// 注册内容
|
|
/// </summary>
|
|
/// <param name="containerRegistry"></param>
|
|
public void RegisterTypes(IContainerRegistry containerRegistry)
|
|
{
|
|
// 不指定Vm名称,Prism会根据对应ViewB进行查找对应的Vm,但是名称必须是ViewBViewModel
|
|
// containerRegistry.RegisterForNavigation<ViewB>();
|
|
|
|
// 指定 Vm 为 ViewBModel
|
|
containerRegistry.RegisterForNavigation<ViewB,ViewBModel>();
|
|
}
|
|
}
|
|
}
|