Hi,
I am using special slots in timeline to mark public holidays etc... Thus I need the possibility to add some detail information to the special slot like adding a text "Independance day". I read in another post that tooltips are not possible in special slots. Is that still true?
So, what I tried to achieve is adding a textblock to my special day style "template" property. This works when I have a fixed text in there, but I am having trouble binding the text to the custom special slot class. As I read in the docs the DataContext of a special slot is of type DecorationBlock. Thus, tried with:
What am I doing wrong? Maybe, there is another way to add some text to a special block?
I am using special slots in timeline to mark public holidays etc... Thus I need the possibility to add some detail information to the special slot like adding a text "Independance day". I read in another post that tooltips are not possible in special slots. Is that still true?
So, what I tried to achieve is adding a textblock to my special day style "template" property. This works when I have a fixed text in there, but I am having trouble binding the text to the custom special slot class. As I read in the docs the DataContext of a special slot is of type DecorationBlock. Thus, tried with:
<
Helper:CustomSpecialSlotStyleSelector.ExceptionDayStyle
>
<
Style
TargetType
=
"telerik:HighlightItem"
BasedOn
=
"{StaticResource HighlightItemStyle}"
>
<
Setter
Property
=
"Margin"
Value
=
"0,0,0,0"
/>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
>
<
Border
Background
=
"Red"
Opacity
=
"0.5"
>
<
TextBlock
Text
=
"{Binding Slot.Reason}"
/>
</
Border
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
</
Style
>
</
Helper:CustomSpecialSlotStyleSelector.ExceptionDayStyle
>
What am I doing wrong? Maybe, there is another way to add some text to a special block?