开发者

Prism shell template, two instances of ShellView being created

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜