After a few hours trying to reach some working sample i decided to try my luck here. I am a newbie to WPF, but things should get easier with time ...
I am trying to have a DataGrid showing an XML file i have. That's it.
I have in my application cars.xml
<cars>
<car type="Ford" size="4" />
<car type="Mercedes" size="2" />
<car type="BMW" size="1" />
</cars>
Now i have a UserControl which have a DataGrid (using .NET 3.5 SP1 on VS2008 with CodePlex ToolKit):
<dg:DataGrid ItemsSource="{Binding cars}" />
As i understands, since it have AutoColumn it should show me a grid with the cars ... but it's not. I guess my error is with the Binding. I haven't got this Binding idea so good in WPF but i am learning. So how do i point the ItemSource to my cars.xml correctly?
10x.