As soon as I select edit Style for calendar day in Expression 2.0, I receive a slew up exceptions because it can not find the resources in xaml from EditorsBrushKeys.....
For example, <Setter Property="Foreground" Value="{DynamicResource EditorsBrushKeys.CalendarItemHoverForegroundKey}"/>
How do I get these resources into my project so that I can successfully edit the Styles?
Thanks,
Steve
Dear Sir,
I have problem in XamMonthCalendar.Actually i have to display count(no. of schedules in that day) i.e. at the middle of calender and number should be at the corner.How can i do it? Plz help me to solve this problem.
Thanks Andrew..... I appreciate your quick replys.....
I believe the xaml files are in a folder named DefaultStyles. The styles/templates for the xamMonthCalendar should be in the Editors\Editors_Generic.xaml file. With regards to the foreground of those other elements, they are the CalendarDayOfWeek and CalendarItemGroupTitle elements. Each has a setter for its foreground set to a dynamicresource for a editorsbrushkeys brush resource so you can either use a custom style for those types with an appropriate setter for the foreground or just put brushes into the resources of the monthcalendar using those same keys to which the default styles point.
Andrew,
Thanks for your quick reply, that works..... One other question, where are the xaml files for this control? And one more question, I was able to style everything on the calendar, but I can't figure out how to change the color of the font(foreground) of the Month text and days of week at the top....
Blend has problems when trying to rebuild xaml based on the actual style/template being used by an element. For example, in your snippet they left out the xml namespace mapping - i.e. it should have been something like igEditors:EditorsBrushKeys.CalendarItemHoverForegroundKey. We actually provide the xaml files with the product specifically because of this limitation in Blend so I would recommend using those xaml files included in the install.