private static void AddInputTransparentToElement(BindableObject obj) { if (obj is View view && TouchEffect.GetColor(view) == Color.Default && Commands.GetTap(view) == null && Commands.GetLongTap(view) == null) { view.InputTransparent = true; } }