您当前的位置: 首页 > 

君子居易

暂无认证

  • 0浏览

    0关注

    210博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

在 WPF 中使用 Prism DryIOC 加载应用程序时导航到默认视图

君子居易 发布时间:2022-07-02 18:03:33 ,浏览量:0

通过重写CreateShell方法:

CreateShell方法:

/// 
protected override Window CreateShell()
{
    var window = this.Container.Resolve();

    window.Loaded += (sender, args) =>
    {
        var manager = this.Container.Resolve();

        manager.RequestNavigate("ContentRegion", "ViewB");
    };

    return window;
}
关注
打赏
1660814979
查看更多评论
立即登录/注册

微信扫码登录

0.0381s