I want to change the Foreground color of each date in MonthView.
Can you pls point me to the part of the template to do so?
in MonthView when I change the ColorScheme to Whitecolor , all my days turn white and it becomes unusable.
Quick fix I found is to iterate thru all TextBlocks and change the forecolor but I would prefer to change the template to get this done.
Hello Rajesh,
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
Thank you for your post. I have been looking into it and I can suggest you create a Style for the ScheduleDateRangePresenter and add an EventSetter for the Loaded event like this:
<Style TargetType="{x:Type igPrim:ScheduleDateRangePresenter}"> <EventSetter Event="Loaded" Handler="ScheduleDateRangePresenter_Loaded"/> </Style>
And add the following handler in the code behind:
private void ScheduleDateRangePresenter_Loaded(object sender, RoutedEventArgs e) { (sender as ScheduleDateRangePresenter).Foreground = Brushes.Red; }
Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.