resharper-sdk

How to provide intellisense with the datacontext type in a resharper plugin?

廉价感情. 提交于 2019-12-12 19:53:56
问题 When writing a wpf prism app, I use the ViewModelLocator to automatically create the datacontext when needed. While this works great, there's no intellisense help unless I add a designtime datacontext ( d:DataContext="{d:DesignInstance viewModels:MyViewModel}" ), but that somewhat defeats the purpose of automatically discovering and connecting the viewmodel. I image something like this: a resharper plugin that looks for ViewModelLocator.AutowireViewModel="True" in the xaml, fetches the class