protected void OnButtonTapped() { if (IsEnabled) { Device.BeginInvokeOnMainThread(() => { OnTabAnimation?.Commit(this, "OnTabAnimation" + DateTime.Now.Millisecond, finished: AnimationCallback); Command?.Execute(null); ButtonTapped?.Invoke(this, EventArgs.Empty); }); } }
protected virtual void OnButtonTapped() { ButtonTapped?.Invoke(); ButtonCommand?.Execute(null); }
private void RaiseButtonTapped(ToolbarButton button) { ButtonTapped?.Invoke(button, new EventArgs()); }