This question is locked. New answers and comments are not allowed.
Hi,
I'm currently developing a Windows Phone 8 application and I use your RadCalendar control.
The application is created with the MVVM Light Framework.
The problem occurs when I try to detect the SelectedValueChanged using the EventToCommand trigger. It's seems to occurs before the binding value changed.
XAML:
In the FilterSession, when I access the CalendarSelectedDate for the first the value is null and in the next selections it's the old value.
If you could take a look to the code and tell me if it's a normal behavior, or if there is a work around when using EventToCommand.
Kinds Regards.
Update : This should be in the Windows Phone 8 RadCalendar Thread, sorry about this...
I'm currently developing a Windows Phone 8 application and I use your RadCalendar control.
The application is created with the MVVM Light Framework.
The problem occurs when I try to detect the SelectedValueChanged using the EventToCommand trigger. It's seems to occurs before the binding value changed.
XAML:
<telerikInput:RadCalendar x:Name="Calendar" SelectedValue="{Binding CalendarSelectedDate, Mode=OneWay}" GridLinesBrush="{StaticResource ElementBackgroundColor}" MonthInfoDisplayMode="Small" IsTodayHighlighted="True" > <i:Interaction.Triggers> <i:EventTrigger EventName="SelectedValueChanged"> <command:EventToCommand Command="{Binding CalendarSelectedDateChanged, Mode=OneWay}" /> </i:EventTrigger> </i:Interaction.Triggers></telerikInput:RadCalendar>
public DateTime? CalendarSelectedDate { get; set; }public ICommand CalendarSelectedDateChanged { get; set; }public MainViewModel(IDataService dataService){ CalendarSelectedDateChanged = new RelayCommand(FilterSession);}private void FilterSession(){ // ommited code}In the FilterSession, when I access the CalendarSelectedDate for the first the value is null and in the next selections it's the old value.
If you could take a look to the code and tell me if it's a normal behavior, or if there is a work around when using EventToCommand.
Kinds Regards.
Update : This should be in the Windows Phone 8 RadCalendar Thread, sorry about this...