Hi,
I'm using RadControl Q3 2011 to build a ScheduleView in WPF application. I plan to use MonthViewDefinition (and I had created a custom BiWeeklyViewDefinition extending MonthViewDefinition that shows current two weeks) to show the appointment data.
One of the requirement is that the ScheduleView should be able to show alternative background color of the dates across months (i.e. showing Blue color for all dates in Dec and Green color for all dates in Jan).
I know that using "TimeRulerItemStyleSelector" should be able to achieve that by building a custom selector extending OrientedTimeRulerItemStyleSelector. However, I found that I even cannot change the background color of ScheduleView in WPF by simply using OrientedTimeRulerItemStyleSelector with Style specifying:
I'm using RadControl Q3 2011 to build a ScheduleView in WPF application. I plan to use MonthViewDefinition (and I had created a custom BiWeeklyViewDefinition extending MonthViewDefinition that shows current two weeks) to show the appointment data.
One of the requirement is that the ScheduleView should be able to show alternative background color of the dates across months (i.e. showing Blue color for all dates in Dec and Green color for all dates in Jan).
I know that using "TimeRulerItemStyleSelector" should be able to achieve that by building a custom selector extending OrientedTimeRulerItemStyleSelector. However, I found that I even cannot change the background color of ScheduleView in WPF by simply using OrientedTimeRulerItemStyleSelector with Style specifying:
<
telerik:OrientedTimeRulerItemStyleSelector
x:Key
=
"TimeRulerItemStyleSelector"
>
<
telerik:OrientedTimeRulerItemStyleSelector.MonthViewTickStyle
>
<
Style
TargetType
=
"telerik:TimeRulerItem"
>
<
Setter
Property
=
"Background"
Value
=
"Blue"
/>
</
Style
>
</
telerik:OrientedTimeRulerItemStyleSelector.MonthViewTickStyle
>
</
telerik:OrientedTimeRulerItemStyleSelector
>
The XAML of ScheduleView:
<
telerik:RadScheduleView
Grid.Row
=
"0"
Name
=
"RSV"
AppointmentsSource
=
"{Binding Appointments}"
VisibleRangeChanged
=
"RSV_VisibleRangeChanged"
Loaded
=
"RSV_Loaded"
TimeRulerItemStyleSelector
=
"{StaticResource ResourceKey=TimeRulerItemStyleSelector}"
>
<
telerik:RadScheduleView.ViewDefinitions
>
<
bo_calendar:BiWeeklyViewDefinition
CalendarWeekRule
=
"FirstFullWeek"
FirstDayOfWeek
=
"Monday"
/>
<
telerik:MonthViewDefinition
CalendarWeekRule
=
"FirstFullWeek"
FirstDayOfWeek
=
"Monday"
/>
</
telerik:RadScheduleView.ViewDefinitions
>
</
telerik:RadScheduleView
>
Any idea?
Thanks a lot!
Frankie