/// <summary> /// Search Icon Tap /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void tbxSearch_ActionIconTapped(object sender, EventArgs e) { if (!string.IsNullOrEmpty(tbxSearch.Text) || !string.IsNullOrWhiteSpace(tbxSearch.Text)) { App.ConditionSearchName = tbxSearch.Text; this.Focus(); ConditionSearchViewModel searchViewModel = new ConditionSearchViewModel(); searchViewModel.FillList(); this.DataContext = searchViewModel; } }
/// <summary> /// Search Key Up /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void tbxSearch_KeyUp(object sender, System.Windows.Input.KeyEventArgs e) { if (e.Key.Equals(Key.Enter)) { if (!string.IsNullOrEmpty(tbxSearch.Text) || !string.IsNullOrWhiteSpace(tbxSearch.Text)) { App.ConditionSearchName = tbxSearch.Text; this.Focus(); ConditionSearchViewModel searchViewModel = new ConditionSearchViewModel(); searchViewModel.FillList(); this.DataContext = searchViewModel; } } }