I'm currently using the samples for WinRT controls and trying prove out some concepts on a project of mine. I want to do something similar to the AppointmentsDemo and can't seem to get my DataContext to bind to the DataTemplate. I'm using the MVVM pattern and can bind everything else. Even when I mimic the examples exactly I get a null value in the ConverterParameter for the CellTemplate.
KLKarthikeyan L Syncfusion Team February 25, 2013 11:36 AM UTC
We cannot bind the member to the ConvertParameter since it is not a dependency property. We have prepared a sample based on your requirement by passing the collection as resource to ConvertParameter. We have attached the sample for your reference.
Could you please check the attached sample and let us know whether the sample meet the requirement.
KLKarthikeyan L Syncfusion Team March 11, 2013 01:26 PM UTC
Based on your code snippet, we have prepared a sample and we have attached the sample for your reference. Please check the sample and let us know the sample meet your requirement, otherwise please provide some information regarding the problem you are facing.
My case is somewhat similar to the ones above. What I am trying to achieve is there is a service/api that I call in order to get what events fall on what day and based on that I bind the data to the calendar. The above scenarios doesn't work because the calendar gets initialized before the service request is completed. Therefore, it is always blank events. My viewmodel calls the service and viewmodel binds to any control via the code behind file. Let me know if there is a better way to achieve this problem.