MVVM is used. I created separate menu ‘Recent files’ which gets its items from binding. It looks like that:

<MenuItem Header="_Recent files" ItemsSource="{Binding RecentFiles, Converter={StaticResource RecentFilesToListOfStringsConverter}, Mode=OneWay}" >
</MenuItem>
Now, I would like to add Command to each of the those auto-generated items, which should get the path as command parameter and execute import file action by click.
Could you please suggest how can it be done in MVVM way?
Again, found the solution by myself. I tried to put the command in wrong way like below, and it doesn’t work:
Here is the right approach. Still don’t understand how it works, have to learn WPF deeply!
EDIT: The final version
XAML:
ViewModel: MVVM Light Toolkit is used, RelayCommand goes from there:
Enjoy