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

How to know which class the view cell is called from?

$
0
0

I have a common ViewCell which multiple ListView's in different ContentPage use. Now in ViewCell xaml.cs file i want to know which class invoked this ViewCell. Is it possible to find this?

Here is my sceanrio. I have added ContextActions to the ViewCell. Now what i want is based on the ContentPage/ViewModel which invokes this View Cell the ContextActions Text should change to either Cancel, Add, More... So how can i identify which class in ViewCell so that ContextActions text can be changed?

I am using MVVM so can the ContextActions Text Property binded with ViewModel property?


Viewing all articles
Browse latest Browse all 77050

Trending Articles



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