Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I would try checking if the binding ever fires with a DebugConverter - check the <a href="http://winrtxamltoolkit.codeplex.com/SourceControl/changeset/view/13396#270576" rel="nofollow">BindingDebugConverter</a> in the <a href="http://bit.ly/WinRTXamlToolkit" rel="nofollow">WinRT XAML Toolkit</a> - set it as a converter for your binding and see if and when it breaks (is it in Convert or ConvertBack, what value is being set etc.).</p> <p>If that does not help - check if your DataContext is set correctly.</p> <p>*EDIT 1</p> <p>If what you are looking is changes in the items of the bound collection - you can check if ItemsSource is an <a href="http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.interop.inotifycollectionchanged.aspx" rel="nofollow">INotifyCollectionChanged</a> and if true - subscribe to the <a href="http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.interop.inotifycollectionchanged.collectionchanged.aspx" rel="nofollow">CollectionChanged</a> event to see the changes. Otherwise - you could modify your control to inherit from <a href="http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.controls.itemscontrol.aspx" rel="nofollow">ItemsControl</a> and override methods like <a href="http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.controls.itemscontrol.getcontainerforitemoverride.aspx" rel="nofollow">GetContainerForItemOverride</a> and <a href="http://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.xaml.controls.itemscontrol.isitemitsowncontaineroverride.aspx" rel="nofollow">IsItemItsOwnContainerOverride</a>.</p> <p>*EDIT 2</p> <p>It seems like there is <a href="http://social.msdn.microsoft.com/Forums/en/winappswithcsharp/thread/6a579bce-bdb4-4a41-a1b2-6d94153e4c00" rel="nofollow">a bug</a> in the framework in Windows 8 Consumer Preview related to using IEnumerable as the type of a dependency property. Using object as the type solves the problem. If you enable native code debugging you will see this binding exception:</p> <blockquote> <p>Error: Converter failed to convert value of type 'System.Collections.ObjectModel.ObservableCollection`1[[ACBDP.Person, ACBDP, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' to type 'IEnumerable'; BindingExpression: Path='Persons' DataItem='ACBDP.BlankPageViewModel, ACBDP, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'; target element is 'ACBDP.AutoCompleteBox' (Name='null'); target property is 'ItemsSource' (type 'IEnumerable'). </p> </blockquote>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload