Open 1130685535 opened 2 months ago
What kind of a project is this? (WPF, WPF .net core, Xamarin, etc..) Are you using Castle Core as your di container? Could you share some code?
What kind of a project is this? (WPF, WPF .net core, Xamarin, etc..) Are you using Castle Core as your di container? Could you share some code?这是一个什么样的项目?(WPF、WPF .net core、Xamarin 等)您是否正在使用 Castle Core 作为您的容器?你能分享一些代码吗?
it is a WPF.net-core project.
I have a MyViewModel class as follows:
The [ReapeatClick] method attribute uses an interceptor.
In a method ShowView():
When obtaining the class with an interceptor using the IoC container: var vm = IoC.Get();, the type of vm becomes Castle.Proxies.MyViewModelProxy. However, the View’s name is MyView, which prevents the View from being matched with the ViewModel.
I tried the following configuration but still could not locate the View: