public void GatherData(AutoCompleteDataArgs arg)
 {
     var existingText = (arg.ExistingData != null ? ((Tag) arg.ExistingData).TagName : string.Empty);
     existingText = existingText ?? string.Empty;
     var tempList = DummyList.Where(m => m.TagName.Substring(0, (existingText.Length > m.TagName.Length ? m.TagName.Length : existingText.Length)).Equals(existingText, StringComparison.OrdinalIgnoreCase));
     arg.PopulateData(tempList);
 }
Beispiel #2
0
 protected virtual void InvalidateTextChange()
 {
     if (AutoCompleteCollector != null && IsEditing)
     {
         AutoCompleteDataArgs arg = new AutoCompleteDataArgs();
         arg.ExistingData = this.DataContext ?? this.Text;
         arg.PopulateData = this.PopulateData;
         AutoCompleteCollector.GatherData(arg);
     }
 }