I wasted lot of time in the internet to search on this topic. But still I couldn't understand how to do it. Can anyone give me code snippets of the view model and the Xaml? It would be better if anyone can give me a sample project.
Hello Haritha,
Thank you for your email. I have been looking into your question and since you wish to create an MVVM application with the XamPivotGrid, I assume that you wish to use a FlatDataSource. I have created a sample application for you, that shows how you can create a FlatDataSource and use it with the XamPivotGrid. Also, you can read more detailed information regarding using the FlatDataSource with the XamPivotGrid, here in our documentation: http://help.infragistics.com/NetAdvantage/WPF/current/CLR4.0/?page=xamPivotGrid_DataBinding_Using_FlatDataSource.html.
Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Hi,
You example is great. However, in my case (and most of the times) the viewmodel does not have a parameterless constructor.
The below line in the example is the problem:
<vm:FlatDataSourceViewModel x:Key="FlatDataSourceViewModel"/>
Could you please provide an example for a viewmodel that has multiple parameters ?
Thanks
Amit Kamat
Hi Krasimir,
It worked for me..!!! Thank you very much.
But now I have new problems to you.
How can I achieve this from XamPivotGrid?
(It would be very kind of you if you can send the source code as well.)
Thank you,
Haritha