After including the Metro.xamCalendar resource dictionary into my project and applying a ResourceWasher to the resource dictionary, my XamCalendar instances are still coming up with the default Metro colors without my wash applied. I have used this same technique on many other IG DefaultStyle resource dictionaries but it doesn't seem to be working for the XamCalendar.
In the debugger I am getting missing resource messages such as:
The resource with a key of LeadingOrTrailingItemBackgroundBrush when verifying Infragistics.Controls.Editors.CalendarResourceProvider's ResourceDictionary is not valid. it should not be a [null].No resource found for key: LeadingOrTrailingItemBackgroundBrush.
The Metro resource dictionaries are merged into my resources:
<ResourceDictionary Source="Themes/Metro/Metro.xamCalendar.xaml" />
This is how I apply the wash. The same way I've applied the wash to many other Metro resource dictionaries.
<igThemes:ResourceWasher WashMode="HueSaturationReplacement" WashColor="{StaticResource MetroWashColor}"> <igThemes:ResourceWasher.SourceDictionary> <ResourceDictionary Source="Themes/Metro/Metro.XamCalendar.xaml" /> </igThemes:ResourceWasher.SourceDictionary> </igThemes:ResourceWasher>
I can't find references to these resources in the Metro.xamCalendar resource dictionary.
Do you have any suggestions?
Thanks.
I made a test project to demonstrate the issue. The calendar appears in the designer with the correct resource wash color. Run the application and the calendar appears with the default metro color.
The attached screenshot shows the Blend designer in the background with the resource wash applied and the application window running in the foreground with the default metro colors.
I guess you can only add one attachment per post. Here is the test project.
Hello,
Thank you for the provided test project and screenshot. I have logged this behavior in our tracking system ID 165532 and the following case was created for you: CAS-137199-Q7Z2G3. The next step will be for a developer to review my investigation and confirm my findings or to offer a fix, or other resolution.You will be notified when the process is finished through the support ticket.
Hi,
We have shipped out a new service release where your issue is resolved. I'd be glad to find out if you had tested it out and if it had met your requirements.You can download the Service Releases by logging to our web site and going to Account\My Keys and Downloads.