Click here to Skip to main content
       

Silverlight / WPF

 
AnswerRe: WPF MVVM application PinmemberThePhantomUpvoter14-Mar-13 3:50 
AnswerRe: WPF MVVM application PinmentorWayne Gaylard14-Mar-13 8:53 
AnswerRe: WPF MVVM application PinmvpAbhinav S18-Mar-13 8:09 
AnswerRe: WPF MVVM application Pinmember_Maxxx_1-Apr-13 20:52 
Questionsilverlight file upload, error not displays on browser Pinmembervpraveen12-Mar-13 22:30 
AnswerRe: silverlight file upload, error not displays on browser PinprotectorPete O'Hanlon12-Mar-13 22:52 
GeneralRe: silverlight file upload, error not displays on browser Pinmembervpraveen13-Mar-13 0:08 
GeneralRe: silverlight file upload, error not displays on browser PinprotectorPete O'Hanlon13-Mar-13 0:12 
QuestionWpf form design Pinmembervikas5515011-Mar-13 21:39 
AnswerRe: Wpf form design PinmvpAbhinav S11-Mar-13 22:29 
Questionerror MC4104? PinmemberSledgeHammer0110-Mar-13 16:08 
QuestionPrism and FluidKit PinmemberDXXL10-Mar-13 3:46 
QuestionWhat is best technology choice (WCF/WPF, WebSockets, Rest) to share webcam video amongst up to 8 users? [modified] PinmemberPaga Cession9-Mar-13 17:57 
QuestionAuto complete text box problem Pinmembercolumbos149277-Mar-13 20:50 
Hello,
Im using the
System.Windows.Controls.AutoCompleteBox
 
Here is my XAML code:
<Window x:Class="auotocomplitetrial.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:toolkit="clr-  namespace:System.Windows.Controls;assembly=System.Windows.Controls.Input.Toolkit"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <toolkit:AutoCompleteBox Name="autocompleteBox"  Height="50" Width="300"
                                 ItemsSource="{Binding MyList}"
                                 IsTextCompletionEnabled="True">
        </toolkit:AutoCompleteBox>
    </Grid>
</Window>
 
And here is my code behind the XAML:
   public partial class MainWindow : Window
    {
        private List<string> myList;
 
        public List<string> MyList
        {
            get { return myList; }
        }
 
        public MainWindow()
        {
            InitializeComponent();
 
            myList = new List<string>
                             {
                                 "Macedonia",
                                 "Madagascar",
                                 "Malawi",
                                 "Malaysia",
                                 "Maldives",
                                 "Mali",
                                 "Malta",
                                 "Marshall Islands",
                                 "Mauritania",
                                 "Mauritius",
                                 "Mexico",
                                 "Micronesia",
                                 "Moldova",
                                 "Monaco",
                                 "Mongolia",
                                 "Montenegro",
                                 "Morocco",
                                 "Mozambique",
                                 "Myanmar"
                             };
            //autocompleteBox.ItemsSource = myList;
        }
    }
 
When i ran this code the auto complete text box doesn't auto completes.
But when i uncomment this line:
//autocompleteBox.ItemsSource = myList;
 
And removed this one:
ItemsSource="{Binding MyList}"
 
From the XAML, the auto complete text box works fine.
 
What i'm missing?
 
Thanks
AnswerRe: Auto complete text box problem PinmemberRichard Deeming8-Mar-13 2:25 
QuestionWPF / MVVM - Modular Design Question PinmemberKevin Marois7-Mar-13 8:27 
AnswerRe: WPF / MVVM - Modular Design Question PinmemberSledgeHammer017-Mar-13 10:51 
GeneralRe: WPF / MVVM - Modular Design Question PinmemberKevin Marois7-Mar-13 15:10 
GeneralRe: WPF / MVVM - Modular Design Question PinmemberSledgeHammer017-Mar-13 16:07 
GeneralRe: WPF / MVVM - Modular Design Question PinmemberKevin Marois8-Mar-13 6:28 
AnswerRe: WPF / MVVM - Modular Design Question [modified] PinmentorWayne Gaylard8-Mar-13 7:10 
GeneralRe: WPF / MVVM - Modular Design Question PinmemberKevin Marois8-Mar-13 7:14 
GeneralRe: WPF / MVVM - Modular Design Question PinmentorWayne Gaylard8-Mar-13 7:35 
GeneralRe: WPF / MVVM - Modular Design Question PinmemberKevin Marois11-Mar-13 9:39 
GeneralRe: WPF / MVVM - Modular Design Question PinmemberSledgeHammer0111-Mar-13 11:20 
GeneralRe: WPF / MVVM - Modular Design Question PinmentorWayne Gaylard12-Mar-13 2:38 
AnswerRe: WPF / MVVM - Modular Design Question PinmvpAbhinav S10-Mar-13 6:31 
GeneralRe: WPF / MVVM - Modular Design Question PinmemberSledgeHammer0111-Mar-13 15:52 
AnswerRe: WPF / MVVM - Modular Design Question PinmvpAbhinav S11-Mar-13 18:03 
GeneralRe: WPF / MVVM - Modular Design Question PinmemberSledgeHammer0111-Mar-13 18:38 
QuestionHow to expand TreeViewItem programatically? PinmemberSledgeHammer013-Mar-13 20:16 
AnswerRe: How to expand TreeViewItem programatically? PinmemberMycroft Holmes4-Mar-13 12:49 
GeneralRe: How to expand TreeViewItem programatically? PinmemberSledgeHammer014-Mar-13 13:09 
GeneralRe: How to expand TreeViewItem programatically? PinmemberMycroft Holmes3-Apr-13 15:06 
QuestionAuto complite text box Pinmembercolumbos149273-Mar-13 9:51 
AnswerRe: Auto complite text box PinmentorWayne Gaylard4-Mar-13 7:26 
QuestionOverride Textbox PinmemberKevin Marois1-Mar-13 9:16 
AnswerRe: Override Textbox PinmvpRichard MacCutchan2-Mar-13 1:05 
AnswerRe: Override Textbox PinprotectorPete O'Hanlon2-Mar-13 2:09 
GeneralRe: Override Textbox PinmemberKevin Marois5-Mar-13 12:01 
GeneralRe: Override Textbox PinprotectorPete O'Hanlon5-Mar-13 12:18 
QuestionLimit Text Input Length PinmemberKevin Marois1-Mar-13 9:10 
AnswerRe: Limit Text Input Length PinmemberMycroft Holmes2-Mar-13 0:41 
AnswerRe: Limit Text Input Length PinprotectorPete O'Hanlon3-Mar-13 10:59 
QuestionPrism PinmemberKevin Marois1-Mar-13 7:33 
AnswerRe: Prism PinmemberJason Gleim1-Mar-13 8:43 
GeneralRe: Prism PinmemberKevin Marois1-Mar-13 8:47 
QuestionC# combobox in datagrid filling PinmemberMember 975714928-Feb-13 1:07 
AnswerRe: C# combobox in datagrid filling PinmemberMycroft Holmes1-Mar-13 13:00 
QuestionCannot Integrate Silverlight Control with aspx web page PinmemberPilu00727-Feb-13 20:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.141216.1 | Last Updated 18 Dec 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid