MainWindow constructor getting called twice

前端 未结 1 645
礼貌的吻别
礼貌的吻别 2020-12-19 06:20

I am trying to set the DataContext of the MainWindow to its ViewModel in App.OnStartup. I noticed when doing that, MainWindow()<

相关标签:
1条回答
  • 2020-12-19 07:09

    There is still the StartupUri lingering in App.xaml i suspect...

    0 讨论(0)
提交回复
热议问题