Silverlight Windows Phone 7 ItemsControl Data Binding?

First of all you did not provide all the code. In the xaml code there are binding references to the EntityGroup object and I have no clue what that is. But there are a few observations that might help you: you are implementing some sort of MVVM, and I didn't see the VM.

The first two code snippets are clases belonging to the model the later 2 are to the view In order to make your code work make instances in an intermediary class to the class objects and use binding to bind to them. Binding works with instanced objects not with class definitions. Here is a ViewModel that you could use: using System; using System.Net; using System.

Windows; using System.Windows. Controls; using System.Windows. Documents; using System.Windows.

Ink; using System.Windows. Input; using System.Windows. Media; using System.Windows.Media.

Animation; using System.Windows. Shapes; namespace **YourNamespace** { public class ViewModel { public MyList TheList {get; set;} public MyListGrouping ListGrouping {get; set;} public ViewModel() { TheList = new MyList(); ListGrouping = new MyListGrouping(); PopulateLists(); } private void PopulateLists() { TheList. DisplayName = "Testing display name"; MyList lList = new MyList(); lList.

DisplayName = "List0"; MyList lList1 = new MyList(); lList1. DisplayName = "List1"; MyList lList2 = new MyList(); lList2. DisplayName = "List2"; ListGrouping.

Title = "Testing title"; ListGrouping.Group. Add(mList); ListGrouping.Group. Add(lList); ListGrouping.Group.

Add(lList1); ListGrouping.Group. Add(lList2); } } } your xaml files are quite messed up and incomplete. However, if you want to make proper bindings their header(s) should contain these lines like this: xmlns:base="clr-namespace:**YourNamespace**" ... Column="1 And there you have it.

Binding works just fine HTH, JP.

First of all you did not provide all the code. In the xaml code there are binding references to the EntityGroup object and I have no clue what that is. But there are a few observations that might help you: you are implementing some sort of MVVM, and I didn't see the VM.

The first two code snippets are clases belonging to the model the later 2 are to the view In order to make your code work make instances in an intermediary class to the class objects and use binding to bind to them. Binding works with instanced objects not with class definitions. Here is a ViewModel that you could use: using System; using System.Net; using System.

Windows; using System.Windows. Controls; using System.Windows. Documents; using System.Windows.

Ink; using System.Windows. Input; using System.Windows. Media; using System.Windows.Media.

Animation; using System.Windows. Shapes; namespace **YourNamespace** { public class ViewModel { public MyList TheList {get; set;} public MyListGrouping ListGrouping {get; set;} public ViewModel() { TheList = new MyList(); ListGrouping = new MyListGrouping(); PopulateLists(); } private void PopulateLists() { TheList. DisplayName = "Testing display name"; MyList lList = new MyList(); lList.

DisplayName = "List0"; MyList lList1 = new MyList(); lList1. DisplayName = "List1"; MyList lList2 = new MyList(); lList2. DisplayName = "List2"; ListGrouping.

Title = "Testing title"; ListGrouping.Group. Add(mList); ListGrouping.Group. Add(lList); ListGrouping.Group.

Add(lList1); ListGrouping.Group. Add(lList2); } } } your xaml files are quite messed up and incomplete. However, if you want to make proper bindings their header(s) should contain these lines like this: ... xmlns:base="clr-namespace:**YourNamespace**" ... then you should specify the DataContext in the xaml file: and then you can bind to the properties of the ViewModel : And there you have it.

Binding works just fine. HTH, JP.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions