• If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!


Silverlight Gotchas

Page history last edited by Corey Alix 13 years, 5 months ago


Binding does not work on member fields

In retrospect this was pretty obvious which is why I couldn't find anything on Google.  I tried for hours to bind to a TreeView.  I implemented a subset of the System.Data classes including DataSet, DataTable and DataColumn.  I wanted to display a tree view table columns listed under each table.  I was able to get the tables to bind or the columns to bind but not both.  As it turns out the property exposing the ObservableCollection must not be declared as readonly -- you must instead declare a private set:



public readonly DataColumns Columns;



public DataRows Rows { get; private set; }



Comments (0)

You don't have permission to comment on this page.