Click here to Skip to main content
15,894,017 members
Articles / Programming Languages / C#

Silverlight Auto Complete Treeview

Rate me:
Please Sign up or sign in to vote.
4.70/5 (7 votes)
18 Jun 2009CPOL5 min read 42.7K   1.6K   18  
Silverlight auto-complete treeview which takes hierarchical data as its datasource.
#pragma checksum "D:\AutoCompleteTextBox\AutoCompleteTextBox\MainPage.xaml" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "1656FB70675C2BA6001BBEBAB87532C1"
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:2.0.50727.3053
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using AutoCompleteTextBox;
using System;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Automation.Peers;
using System.Windows.Automation.Provider;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Interop;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Imaging;
using System.Windows.Resources;
using System.Windows.Shapes;
using System.Windows.Threading;


namespace AutoCompleteTextBox {
    
    
    public partial class MainPage : System.Windows.Controls.UserControl {
        
        internal System.Windows.Controls.Grid LayoutRoot;
        
        internal System.Windows.Controls.Primitives.Popup PopupControl;
        
        internal AutoCompleteTextBox.SilverlightTreeView tvData;
        
        internal System.Windows.Controls.AutoCompleteBox inputBox;
        
        internal System.Windows.Controls.TextBox txtCity;
        
        private bool _contentLoaded;
        
        /// <summary>
        /// InitializeComponent
        /// </summary>
        [System.Diagnostics.DebuggerNonUserCodeAttribute()]
        public void InitializeComponent() {
            if (_contentLoaded) {
                return;
            }
            _contentLoaded = true;
            System.Windows.Application.LoadComponent(this, new System.Uri("/AutoCompleteTextBox;component/MainPage.xaml", System.UriKind.Relative));
            this.LayoutRoot = ((System.Windows.Controls.Grid)(this.FindName("LayoutRoot")));
            this.PopupControl = ((System.Windows.Controls.Primitives.Popup)(this.FindName("PopupControl")));
            this.tvData = ((AutoCompleteTextBox.SilverlightTreeView)(this.FindName("tvData")));
            this.inputBox = ((System.Windows.Controls.AutoCompleteBox)(this.FindName("inputBox")));
            this.txtCity = ((System.Windows.Controls.TextBox)(this.FindName("txtCity")));
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Team Leader Phoenix Tech Labs
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions