Пример #1
0
            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();
                }
            }
Пример #2
0
            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);
            }