public void CreateAutoCompleteSource(TagPanel _tagPan)
        {
            tagPan        = _tagPan;
            _labelsIDPair = tagPan.treeDataStructure.GetEnumerable(TreeTraversalType.BreadthFirst, TreeTraversalDirection.TopDown).Select(x => new TagAndNodeData(x.Value.label, x.Value.ID)).Where(x => x.tag != "project" && x.tag != "root").ToList();

            #region textBox
            TagBox.AutoCompleteSource = AutoCompleteSource.CustomSource;
            AutoCompleteStringCollection _autoSource = new AutoCompleteStringCollection();
            _autoSource.AddRange(_labelsIDPair.Select(x => x.tag).ToArray());
            TagBox.AutoCompleteCustomSource = _autoSource;
            #endregion

            //TagBox.AutoCompleteList = _labels;
        }
 public void CreateAutoCompleteSource(TagPanel _tagPan)
 {
     this.tagPan        = _tagPan;
     this._labelsIDPair = (
         from x in this.tagPan.treeDataStructure.GetEnumerable(TreeTraversalType.BreadthFirst, TreeTraversalDirection.TopDown)
         select new TagAndNodeData(x.Value.label, x.Value.ID) into x
         where x.tag != "project" && x.tag != "root"
         select x).ToList <TagAndNodeData>();
     this.FastBox.ItemsSource = ((
                                     from x in this._labelsIDPair
                                     select x.tag).ToList <string>());
     this._consoleRoot      = new ConsoleContainerElement();
     this._currentContainer = this._consoleRoot;
 }
Exemple #3
0
 public void CreateAutoCompleteSource(TagPanel _tagPan)
 {
     this.fastWPFTag_obj.CreateAutoCompleteSource(_tagPan);
 }