Answer the question
In order to leave comments, you need to log in
How to bind Generic VM?
Good day.
There is an interface of the base ViewModel:
interface IBaseViewModel<T>
{
ICommand AddCommand { get; }
ICommand<T> EditCommand { get; }
ICommand<T> DeleteCommand { get; }
}
<Button Command="{Binding Path=(vm:IBaseViewModel`1.AddCommand)}"/>
<Button Command="{Binding Path=(vm:IBaseViewModel`1.EditCommand)}"/>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question