Hey There-
I've run into a fairly annoying problem implementing a custom tooltip for my ScheduleView. Basically, everything seems to work EXCEPT for the fact that I'm attempting to set the background color of the content and there seems to be extra space on the left and right of the datatemplate that I cannot get rid of. Just to test, I've reduced the datatemplate XAML to:
What I need to implement is more complicated and will most likely require me to use a grid, but even with this little bit of code I still see a noticeable amount of white space on either side of the tooltip. How do i get rid of that? It seems like I've tried everything...
K
I've run into a fairly annoying problem implementing a custom tooltip for my ScheduleView. Basically, everything seems to work EXCEPT for the fact that I'm attempting to set the background color of the content and there seems to be extra space on the left and right of the datatemplate that I cannot get rid of. Just to test, I've reduced the datatemplate XAML to:
<
DataTemplate
x:Key
=
"ToolTipTemplate"
>
<
TextBox
Background
=
"{Binding Appointment.SMCBrush}"
TextWrapping
=
"NoWrap"
Text
=
"{Binding Appointment.Title}"
Foreground
=
"{Binding Appointment.FontBrush}"
Margin
=
"0,0,0,0"
/>
</
DataTemplate
>
What I need to implement is more complicated and will most likely require me to use a grid, but even with this little bit of code I still see a noticeable amount of white space on either side of the tooltip. How do i get rid of that? It seems like I've tried everything...
K