Hi I have a datatemplate I would like to apply for the GridViewRow tooltip. May I ask how abouts I would do that?
<
DataTemplate
x:Key
=
"AppointmentToolTipTemplate"
>
<
Grid
MaxWidth
=
"300"
Background
=
"White"
>
<
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"
/>
<
Button
IsEnabled
=
"False"
Background
=
"Transparent"
Grid.Row
=
"1"
VerticalAlignment
=
"Top"
HorizontalAlignment
=
"Left"
Margin
=
"5 5 0 0"
Width
=
"28"
Height
=
"29"
ContentTemplate
=
"{StaticResource Calendar.Clock}"
></
Button
>
<
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 tt', Mode=TwoWay}"
TextWrapping
=
"Wrap"
FontSize
=
"10"
/>
<
TextBlock
Text
=
" - "
FontSize
=
"10"
/>
<
TextBlock
Text
=
"{Binding End, StringFormat='hh:mm tt', Mode=TwoWay}"
TextWrapping
=
"Wrap"
FontSize
=
"10"
/>
</
StackPanel
>
<
TextBlock
Text
=
"{Binding Start, StringFormat='dddd dd MMM yyyy', Mode=TwoWay}"
Margin
=
"0 3"
FontSize
=
"10"
/>
</
StackPanel
>
<
TextBlock
Grid.Row
=
"2"
Grid.ColumnSpan
=
"2"
Text
=
"{Binding Body}"
Margin
=
"5 3 5 8"
TextWrapping
=
"Wrap"
/>
</
Grid
>
</
DataTemplate
>