private void CloseOrder(object sender, EventArgs e) { if (OrderView.TranslationX == 0) { Action <double> callback = input => OrderView.TranslationX = input; OrderView.Animate("anim", callback, 0, 150, 16, 300, Easing.CubicOut); } }
private void OpenOrderTab(object sender, EventArgs e) { if (OrderView.TranslationX >= 150) { Action <double> callback = input => OrderView.TranslationX = input; OrderView.Animate("orderAnim", callback, 150, 0, 16, 300, Easing.CubicInOut); } }
private void closeTab() { if (OrderView.TranslationX >= 150) { return; } Action <double> callback = input => OrderView.TranslationX = input; OrderView.Animate("orderAnim", callback, 0, 150, 16, 300, Easing.CubicOut); }