This question is locked. New answers and comments are not allowed.
Hello.
I am not able to get the resources in the appointment tooltip template.
I am trying this way:
can you help me?
Thanks
Filipe
I am not able to get the resources in the appointment tooltip template.
I am trying this way:
<
TextBlock
Text
=
"{Binding Occurrence.Appointment.Resources, Converter={StaticResource ResourcesSeparatorConverter}}"
/>
But it doesn't work. It gives error :
BindingExpression path error: 'Occurrence' property not found on
My full code of the Appointment ToolTip Template is:
<
DataTemplate
x:Key
=
"AppointmentToolTipTemplate"
>
<
Grid
MaxWidth
=
"300"
>
<
Grid.ColumnDefinitions
>
<
ColumnDefinition
Width
=
"43"
/>
<
ColumnDefinition
/>
</
Grid.ColumnDefinitions
>
<
Grid.RowDefinitions
>
<
RowDefinition
/>
<
RowDefinition
/>
<
RowDefinition
/>
</
Grid.RowDefinitions
>
<
TextBlock
Text
=
"{Binding Subject}"
Grid.ColumnSpan
=
"2"
TextWrapping
=
"Wrap"
Margin
=
"5 8 4 3"
FontWeight
=
"Bold"
/>
<
Image
Grid.Row
=
"1"
VerticalAlignment
=
"Top"
HorizontalAlignment
=
"Left"
Margin
=
"5 5 0 0"
Source
=
"/ESUX.WebPresentation.Silverlight.Activities;component/Images/clock.png"
Width
=
"28"
Height
=
"29"
/>
<
StackPanel
Orientation
=
"Vertical"
Grid.Column
=
"1"
Grid.Row
=
"1"
Margin
=
"0 5 0 0"
>
<
StackPanel
Orientation
=
"Horizontal"
Margin
=
"0 0 0 0"
>
<
TextBlock
Text
=
"{Binding Start, StringFormat='HH:mm'}"
TextWrapping
=
"Wrap"
FontSize
=
"10"
/>
<
TextBlock
Text
=
" - "
FontSize
=
"10"
/>
<
TextBlock
Text
=
"{Binding End, StringFormat='HH:mm'}"
TextWrapping
=
"Wrap"
FontSize
=
"10"
/>
</
StackPanel
>
<
TextBlock
Text
=
"{Binding Start, StringFormat='{}{0:dddd (dd-MM)}'}"
Margin
=
"0 3"
FontSize
=
"10"
/>
</
StackPanel
>
<
TextBlock
Grid.Row
=
"2"
Grid.ColumnSpan
=
"2"
Text
=
"{Binding Body}"
Margin
=
"5 3 5 8"
TextWrapping
=
"Wrap"
/>
<
TextBlock
Text
=
"{Binding Occurrence.Appointment.Resources, Converter={StaticResource ResourcesSeparatorConverter}}"
/>
</
Grid
>
</
DataTemplate
>
can you help me?
Thanks
Filipe