Hi there,
I cannot set any Styles on the Navigator.
I tried it with an CalendarResourceProvider and it worked but the weeknumber and weekday fields are always with foreground black. I cannot set another color.
I tried also to create an style for the CalendarWeekNumber and CalendarDayOfWeek Classes but that has no effect.
Also I wanted to change the style of highlighted days with activities. They are only bold and that is not enough.
I'm using currently Version 11.1
Thanks for any answer!
You should be able to override the week number and day of week header foreground via the ResourceOverrides on the data navigator's resoureprovider as with the snippet below.
As far as doing something more that bold with days that have activity you would have to re-template the CalendarDay class and use the IsHighlighted property it exposed or use the VSM 'HightLight' group (IsHighlighted or IsNotHightlighted states) to do what you want.
<ig:XamDateNavigator x:Name="datNav" DataManager="{Binding ElementName=dataManager}" WeekNumberVisibility="Visible">
</i
g:XamDateNavigator>
I have tested this snipped. Before I had the same in an C# class derived from CalendarResourceProvider.
But the DayOfWeekForegroundBrush cannot be changed with this.
With your snipped it is also Black.
The other thing with styling is that my styles never used by the navigator. They are ignored.