开发者

Prism shell template, two instances of ShellView being created

开发者 https://www.devze.com 2023-01-05 07:34 出处:网络
Started with a default Prism Shell project and all was working as expected. I began making changes and modifications and now the application is started twice.

Started with a default Prism Shell project and all was working as expected.

I began making changes and modifications and now the application is started twice.

protected override DependencyObject Cr开发者_开发问答eateShell()

The above override is only called once. The constructor(s) in the ShellView are being called twice. Once for the default constructor and once for a constructor taking an instance of the ShellViewModel.

Not sure what exactly is causing this however my hunch is that something was inadvertently modified and a trivial solution awaits...


StartupUri was set; my belief is that this happened when opening the solution with Expression Blend.

0

精彩评论

暂无评论...
验证码 换一张
取 消