Hi,
I need to show a custom appointment with some custom fields, I followed docs samples but it doesn't work.
My steps:
1) create an AppointmentExt class that inherits from Appointment, with 2 simple extra fields
2) added an ObservableCollection<AppointmentExt> as Appointments source
3) Created a new Tooltip template and bind the text to my specialtooltip
At runtime the SpecialTooltip is fill but it's displayed empty (not binded?).
So I've 2 question:
A) how can I bind the tooltip to my SpecialTooltip field?
B) how can I change the way the appointment is draw ?
Thanks
I need to show a custom appointment with some custom fields, I followed docs samples but it doesn't work.
My steps:
1) create an AppointmentExt class that inherits from Appointment, with 2 simple extra fields
public
class
AppointmentExt : Appointment
{
public
planning_slot Slot {
get
;
set
; }
public
string
SpecialTooltip {
get
;
set
; }
}
2) added an ObservableCollection<AppointmentExt> as Appointments source
ObservableCollection<AppointmentExt> appointments =
new
ObservableCollection<AppointmentExt>();
3) Created a new Tooltip template and bind the text to my specialtooltip
<
DataTemplate
x:Key
=
"ScheduleTooltip"
>
<
StackPanel
Orientation
=
"Horizontal"
>
<
TextBlock
MaxWidth
=
"200"
TextWrapping
=
"Wrap"
Text
=
"{Binding SpecialTooltip}"
/>
</
StackPanel
>
</
DataTemplate
>
At runtime the SpecialTooltip is fill but it's displayed empty (not binded?).
So I've 2 question:
A) how can I bind the tooltip to my SpecialTooltip field?
B) how can I change the way the appointment is draw ?
Thanks