/// <summary> /// EventMgt_Combo1Selection /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private async void EventMgt_Combo1Selection(object sender, System.Windows.Controls.SelectionChangedEventArgs e) { string selection = (string)Combo1.SelectedValue; // async call IsWindowActive = false; ObservableCollection <Tags> result = await Task.Run(() => { if (m_cache.ContainsKey(selection) == false) { m_cache.Add(selection, m_off.get_data_deserialize(selection)); } return(m_cache[selection]); }); Tags1 = result; autoCompleteBox1.Text = ""; IsWindowActive = true; }