Hi,
We are using XAMCalendar. We added some styles for BackGround Color. But In Some case we want to refresh the Calendar or reload. Is there any way to reload or refresh the Calendar for showing default calendar view.We have already used UpdateLayout and UpdateDefaultStyle. But its not working.
Please let us aware.
Thanks.
Thanks for your support. Right now we are using XAMCalendar and for Background and Foreground we have added Converter along with we have combo Box which provide color code. Also we have datePicker for showing Start date, End Date.
For Example: First we select color code from combo. Next we select Start Date that will start from calendar minimum date and End Date will be Maximum Date of calendar. Suppose we select today date 5/10/2016 as Min calendar Start Date. and End Date 05/13/2016 will be set as Max Calendar Date. As we select Max date from Date Picker in converter we find color code and It will change background and Foreground color. (First Time working fine.)
Second Time If we select other color code again set same Min (5/10/2016) Max(05/13/2015) Date. In this scenario converter are not calling even we set the same date. We have noticed date in this scenario calendar is not calling Background Converter until or unless we select different dates from Picker.Overall If we reload or refresh the Calendar again somehow we can fulfill or requirement.
Solution for removing resources is not working proper way.
Thanks for your support.
Hello Kanwar,
What calendar default view are you referring to? Do you mean the view without your background color styling? If so, just remove your styles from whatever Resources collection they currently exist. This is assuming you are using implicit styles in order to apply your background color style. If you remove the style the control should automatically revert back to what it was before. Take a look at my attached sample. In it I have a style that changes the background color of the calendar. When I click on the remove button it removes the style and the color reverts back to the default.