ToolTip Background?

Topics: question
Apr 21, 2010 at 4:41 PM

Hi,

I've gotten custom databound tooltips working in a Silverlight 4 app, but would like to get rid of the white rectangle that appears behind my content.  The photo behind this link (tooltip-3.png) illustrates the issue - the xaml block for the tool tip (contained the word "Turtle" in front of a gradient background) is wrapped in a white rectangular region.  I'd like to get rid of that (i.e., I don't want any part of that white rectangle to be visible when my tool tip is displayed.)

Does anyone know how to do that?  My attempts at setting the tool tip's background property haven't worked.

Thanks,

jmp

Apr 21, 2010 at 4:53 PM

I think I've figured it out.  I set the margin on my content to "-10,-5,-10,-5" - that made it spill over the edges of the rectangle behind it.

However, this will still be an issue with content that has an alpha < 100% - portions of the white rectangle will show through in that case.

Is there some way to make the white rectangle go away?

jmp