Hy all.
I looked at the new controls from Infragistics, the XamMonthCalendar and XamDateTimeEditor, but I noticed that XamMonthCalendar has more configuration properties like WeekNumberVisibility or FirstDayOfWeek, which I think are great. But would it be possible to have them also for the XamDateTimeEditor? Is there a configuration or something to be able to use them here also?
Thanks.
Nico
Yes, you are right. I had the Theme for the XamDateTimeEditor. I forgot about it. Now it's working.
Thanks very much.
Well it depends on where you put that style. If you put it at the Window, Application or anything above the xamDateTimeEditor and you have the Theme set then the Local style that WPF will use will be the one from the xamDateTimeEditor's Resources that is put there by setting the Theme. If this is not the issue can you post a sample that demonstrates the problem?
Hy Andrew.
Thanks for the answer. I tryed to use a style like this:
<Style TargetType="{x:Type igEditors:XamMonthCalendar}">
<Setter Property="TodayButtonVisibility" Value="Hidden" />
<Setter Property="WeekNumberVisibility" Value="Visible" />
<Setter Property="FirstDayOfWeek" Value="Monday" />
</Style>
but dosen't seem to work. Am I doing something wrong?
We didn't want to mimic the properties of the xamMonthCalendar on the xamDateTimeEditor since technically the xamMonthCalendar is just used by the xamDateTimeEditor within its template but there isn't a tight coupling between the two - you could retemplate the xamDateTimeEditor and remove the xamMonthCalendar or use something else. Anyway, I think the answer to your question is in this post where I showed how someone can provide a style for the xamMonthCalendar in the resources that could be used to set these properties.