How can I get xaml hot reload to work for custom types in WPF

自古美人都是妖i 提交于 2020-05-26 09:29:53

问题


I am using the ReactiveUI library within my WPF project and it seems that ReactiveUserControl<TViewModel> : UserControl and the ReactiveWindow<TViewModel> : Window don't work with the XAML Hot Reload.

Although extending directly from a Usercontrol did allow me to use the XAML hot reload.

I can not find any documentation or posts on the matter besides this one page which explains absolutely nothing. Wondering if it maybe has to do with the x:TypeArguments="navigation:MainVM" that you have to pass in or the ReactiveUI library messing something up internally?

I am using visual studio 2019 but the same problem occurs on visual studio 2017, besides that I am using .NET Framework 4.6.1 and ReactiveUI version 9.20.1.

来源:https://stackoverflow.com/questions/57507878/how-can-i-get-xaml-hot-reload-to-work-for-custom-types-in-wpf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!