Hi,
I am using SpecialSlot style in order to add a rectangle with some text on a slot. I am facing a difficulty since it's not a pattern that repeats itself like in the readonly brush example.
Here is the Content Template of my slot (assigned then by a SpecialSlotStyleSelector like in the examples).
Indeed, the text stays positionned relative to the top of the border in the viewPort, not positionned relative to the real border which is not shown completely on the viewport, it seems that the border is drawn such that it always begin inside the viewport (maybe for performance reasons?).
Hard to explain, I hope the screens will help : screen1, screen2
The screen2 is the same as screen1 except that it is scrolled down a little bit in order to show that the border isn't at fixed position in the scheduler. In the second screen I shouldn't see the text since I have scrolled down.
Is this expected behavior? If so, can I remove this behavior?
Thanks
I am using SpecialSlot style in order to add a rectangle with some text on a slot. I am facing a difficulty since it's not a pattern that repeats itself like in the readonly brush example.
Here is the Content Template of my slot (assigned then by a SpecialSlotStyleSelector like in the examples).
<
ControlTemplate
x:Key
=
"VacationSlotTemplate"
>
<
Border
Background
=
"Black"
Opacity
=
"0.655"
VerticalAlignment
=
"Stretch"
>
<
Border
HorizontalAlignment
=
"Left"
Background
=
"#FFDC1818"
>
<
TextBlock
Text
=
"MD"
Foreground
=
"Azure"
FontSize
=
"12px"
HorizontalAlignment
=
"Center"
TextAlignment
=
"Center"
Width
=
"13"
TextWrapping
=
"Wrap"
/>
</
Border
>
</
Border
>
</
ControlTemplate
>
Hard to explain, I hope the screens will help : screen1, screen2
The screen2 is the same as screen1 except that it is scrolled down a little bit in order to show that the border isn't at fixed position in the scheduler. In the second screen I shouldn't see the text since I have scrolled down.
Is this expected behavior? If so, can I remove this behavior?
Thanks