/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void VerifyTextBox_KeyUp(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { VerifyButton.PerformClick(); } }
protected async override void OnAppearing() { base.OnAppearing(); // pause for a moment before animations await Task.Delay(App.AnimationSpeed); // Sequentially animate the login buttons. ScaleTo() makes them "grow" from a singularity to the full button size. await VerifyButton.ScaleTo(1, (uint)App.AnimationSpeed, Easing.SinIn); }
public SupplyOrderConfirmationWindow(SupplyOrder newOrder, Supplier supplier, SupplyOrderWindow window) { InitializeComponent(); OrderEntriesListBox.ItemsSource = newOrder.OrderEntries; IdLabel.Content = "SupplyOrder: " + newOrder.Id; SupplierNameLabel.Content = supplier.Name; ContactLabel.Content = supplier.ContactInfo; TotalLabel.Content = newOrder.Total; Cash_CreditLabel.Content = newOrder.Paid ? "Cash" : "Credit"; _observer = window; VerifyButton.Focus(); }
public void PrimeNumbersApp_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Escape) { Close(); } if (e.KeyCode == Keys.Enter) { VerifyButton.PerformClick(); } if (e.KeyCode == Keys.ControlKey) { VerifyTextTick.Checked = !VerifyTextTick.Checked; } }