Hi,in yours WinForms Scheduling components the Appointment Class has a very useful BarColor property. I couldn't find a corresponding property in you WPF Appointment Class.
Is there a way to get the corresponding functionality, so that I can color the border of the appointment to my own desire?
If yes can someone show how?
Thanks,Roberto
Being able to assing a color to an appointment is a major necessity and, in fact, it is an important feature in your own schedule compontes for winforms.I guess that a bindable ActivityColor property in the Activity Class would do it. Having that property would allow the user to re-template this way the control templates contained in the file generic.shared.xaml
<ControlTemplate x:Key="ActivityTemplate" TargetType="igSchedulePrim:ActivityPresenter">
<Border BorderThickness="3" BorderBrush="{Binding ActivityColor}">
<Grid>
[...]
</Grid>
</Border>
</ControlTemplate>Best Regards
Hi Roberto,
You should create your own custom appointment class which has BarColor property and to use property mappings to bind it to the schedule. In the template of the ActivityPresenter you should use something like this:
BorderBrush="{Binding DataItem.BarColor}"
I attached the sample application. Hope this helps.
Thanks,
Diyan Dimitrov