void SalesView_IsVisibleChanged(object sender, DependencyPropertyChangedEventArgs e) { if (!this.IsVisible) { return; } CustomerCardNumber.SelectAll(); CustomerCardNumber.Focus(); }
void vm_OnCustomerLogout(object sender, EventArgs e) { CustomerCardNumber.SelectAll(); CustomerCardNumber.Focus(); }