Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

ListView - DataTemplate Command Binding - Reference to ListView don't work?

$
0
0

Hi,

I have a Listview:

Opens ArtikelListCustomViewCell:

Opens ArtikelDataGrid:

Opens ListViewLabel:

Command in ViewModel:
public ICommand DoSomeCommand { get; private set; }
DoSomeCommand = new Command(dosome)
void dosome(){}

Now If a user tap on the second label "DoSomeCommand" should fire in the Contentpage where the ListView is located. (because this is the contentpage and I want to open a DisplayAlert. I can't open DisplayAlert directly from the ListViewLabel right?)

Device Log:

Is anything wrong with my x:Reference at ListViewLabel?


Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>