Hi,
I need to bind some properties (background color) of my appointments to special fields added.
So, this is my extended Appointment class (inherits Appointment)
This is my schedule XAML
this is from my dictionary.xaml
How can I bind ??? to SpecialForecolor properties of my AppointmentExt class ?
Thanks
p.s: SpecialTooltip is binded and worked fine
I need to bind some properties (background color) of my appointments to special fields added.
So, this is my extended Appointment class (inherits Appointment)
public class AppointmentExt : Appointment{ public planning_slot Slot { get; set; } public string SpecialTooltip { get; set; } public Color SpecialForecolor { get; set; }}This is my schedule XAML
<telerik:RadScheduleView x:Name="rsvCalendar" FirstVisibleTime="09:00" telerik:StyleManager.Theme="Metro" Grid.Column="1" Grid.ColumnSpan="2" Margin="8" Grid.Row="1" FirstDayOfWeek="Monday" Background="#BFFFFFFF" BorderBrush="#BFD6D4D4" Foreground="#BF767676" IsInlineEditingEnabled="False" AppointmentCreating="rsvCalendar_AppointmentCreating" AppointmentDeleting="rsvCalendar_AppointmentDeleting" AppointmentEditing="rsvCalendar_AppointmentEditing" ShowDialog="rsvCalendar_ShowDialog" AllowDrop="False" VisibleRangeChanged="rsvCalendar_VisibleRangeChanged" ToolTipTemplate="{DynamicResource ScheduleTooltip}" AppointmentStyleSelector="{DynamicResource AppointmentItemStyleSelector}"> <telerik:RadScheduleView.ViewDefinitions> <telerik:DayViewDefinition MajorTickLength="1h" MinorTickLength="1h" MinTimeRulerExtent="200" MaxTimeRulerExtent="500" DayStartTime="07:00" DayEndTime="19:00"/> <telerik:WeekViewDefinition MajorTickLength="1h" MinorTickLength="1h" MinTimeRulerExtent="200" MaxTimeRulerExtent="500" DayStartTime="07:00" DayEndTime="19:00"/> <telerik:MonthViewDefinition/> <telerik:TimelineViewDefinition/> </telerik:RadScheduleView.ViewDefinitions> </telerik:RadScheduleView>this is from my dictionary.xaml
<SolidColorBrush x:Key="AppointmentItemBackground_Selected" Color="???"/><Style x:Key="AppointmentItemBaseStyle" TargetType="local:AppointmentItem"> <Setter Property="Background" Value="???" />How can I bind ??? to SpecialForecolor properties of my AppointmentExt class ?
Thanks
p.s: SpecialTooltip is binded and worked fine