In this article we will be seeing how to create Silverlight AutoCompleteBox control.Xaml:<sdk:AutoCompleteBox/>Steps Involved:Creating a Silverlight Application:
<Canvas Background="AntiqueWhite" Height="250" Width="250" > <TextBlock Canvas.Left="5" Canvas.Top="10" Text="Autocompltete Control" Foreground="Blue" FontFamily="Arial" FontSize="16" Width="130" FontWeight="Bold"> </TextBlock> <TextBlock x:Name="txtName" Canvas.Left="5" Canvas.Top="60" Text="Enter the Name:" Foreground="Black" FontFamily="Arial" FontSize="16" Width="130"> </TextBlock> <sdk:AutoCompleteBox x:Name="autoComplete" Canvas.Top="60" Height="20" Width="100" Canvas.Left="136" /> </Canvas></UserControl>Open MainPage.xaml.cs file and replace the code with the following.public MainPage() { InitializeComponent(); List<string> names = new List<string>(); names.Add("Anand"); names.Add("Arun"); names.Add("Arjun"); names.Add("Arul"); names.Add("Bala"); names.Add("Balaji"); names.Add("Barani"); names.Add("Buji"); autoComplete.ItemsSource = names; }
Silverlight- AutoCompleteBox Control Example
Silverlight- Slider Control Part 3
i am using a telerik radgrid to display items and if i want to add autocompletebox on one of the column the what is to be written in itemsource?
I have a auto complete box in a child window. when i open the child window i unable to set focus to child window. I tried. but the focus set only once at a first time .. Can you provide the solution.