private TextBox Focused() { if (NameTb.Focus()) { return(NameTb); } else if (ValueTb.Focus()) { return(ValueTb); } else if (DescriptionTb.Focus()) { return(DescriptionTb); } else if (SearchTB.Focus()) { return(SearchTB); } else { return(NameTb); } }
private void DescriptionTb_MouseDown(object sender, MouseButtonEventArgs e) { DescriptionTb.Focusable = true; DescriptionTb.CaretIndex = DescriptionTb.CaretIndex; DescriptionTb.Focus(); }