Good day.
I'm trying to write an application using the mvvm pattern with the participation of the Caliburn.Micro framework. My task: in MainView.xaml, besides the MainViewModel, attach another view model to MenuItem , where Header="Файл" . It is described in the separate FileMenuViewModel class. Binding MenuItem to viewmodel in xaml I do this:
<MenuItem cal:View.Model="{Binding FileMenuViewModel, Mode=TwoWay}" Header="Файл" Height="22" Margin="4,0,0,0"> , but when you click any of the menu buttons from the MenuItem "File" in the form, an Exception crashes, for example, like this:
"No target found for method OpenFileWindow."
As I understand it, Caliburn Micro cannot find this stupid Target from this: cal: View.Model property, in which the ViewModel or any other element that binds to the View is indicated.
Here is my project:
https://yadi.sk/d/Z9paO0yfuqwWc
So much googling and still can not find: why CaliBurn. Micro can not find Target and how to fix it?
Please help (and do not attack, pliz))))), but for the time being do not offer me options for which I will have to inherit from the class Bootstrapper AppBootStrapper that I have to take Silverlight or Prism from which I absolutely do not want to have case (so hard for me to study).