public void OnClick(View v) { MyButtonEventRenderer buttonRenderer = v.Tag as MyButtonEventRenderer; if (buttonRenderer != null) { // have to cast to MyButton to access the new SendClicked method // which replaces that of the base class Button MyButtonEvent myButton = (MyButtonEvent)buttonRenderer.Element; myButton.SendClicked(); //buttonRenderer.ForceUpdateText(); } }
public bool OnLongClick(View v) { MyButtonEventRenderer buttonRenderer = v.Tag as MyButtonEventRenderer; if (buttonRenderer != null) { // have to cast to MyButton to access the new SendClicked method // which replaces that of the base class Button MyButtonEvent myButton = (MyButtonEvent)buttonRenderer.Element; myButton.ShowDeleteButton(); buttonRenderer.ForceUpdateText(); } return(false); }