*edited for clarity*I am having issues trying to databind to a XamDataGrid. I am using the mvvmcross framework, however the binding model should be pretty similar.
My sample ViewModel has a collection of Student objects. I am able to bind that ViewModel to a ListView using the following syntax:
ListView ItemsSource="{x:Bind Vm.Students}"
This however doesn't seem to work for the XamDataGrid. I did try:
ig:XamDataGrid x:Name="Grid1" AutoGenerateColumns="True" SelectionMode="SingleRow" RowHeight="75" ItemsSource="{x:Bind Vm.Students}"
I also did try the alt syntax that uses a CollectionViewSource:
ItemsSource="{Binding Source={StaticResource RecordingsCollection} }
Sample Code attached for reference. Any ideas on what might be the issue?
What do you mean by it's not working? Are you getting an exception, or binding errors, or nothing is showing? I downloaded your sample, switch to using the NuGet packages, and everything worked fine for me using the x:Bind syntax. I did remove the StackPanel because the layout was bad, but I didn't change anything else.
There are no errors or exceptions and nothing in the output console. The screen is simply blank. The live visual tree does show that the grid exists. See attached screenshots.
Do you mind sharing your solution, i will compare the two and see if I have left out anything in my code.
Thanks
Ananth
Here you go. Remember, I am using NuGet and not the hard references.
Thanks Brian. Switching to the "InfragisticsUWP.Controls.Grids.XamDataGrid" nuget package fixed it. I was earlier referring to the dlls that I had downloaded from the Infragistics site. Didn't see a reference for the nuget on the download page either. Perhaps it is an issue with those dlls then?
Interesting, not really sure. Possibly. We'll look into it. Thanks for reporting this.