I have an View
element and I want to check its type like ImageView
, TextView
etc in Android I could do this like (view instanceof EditText)
but couldn't find anything familiar in Xamarin Android.
if (view.GetType() == typeof(EditText))
{
// Do stuff here
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With