I have a
TemplateSelectorand two different DataTemplates (ViewCells). Behind the
ListViewis a ViewModel for the
ObservableCollectionwhich contains some item-models. The Binding to this Item-Model in my templates work like a charm.
What I want: My ContentPage-ViewModel has some commands. The DataTemplate should use this command. How can I bind to this commands?
I know, that I can make the commands static and reference with
x:Static to it. Or I can add the Command to my Item-Model. But both are no Option for my solution.
Thanks in advance