I am trying to create a non-text ToolTip in my code like this (where sp is a StackPanel):
if (helpText != null)
{
ToolTip tt = new ToolTip();
RichTextBox rtb = new RichTextBox();
rtb.Document = new FlowDocument(new Paragraph(new Run(helpText)));
tt.Content = rtb;
sp.ToolTip = tt;
}
This must be calling the ToString() method of the RichTextBox, because all I get in my ToolTip is "System.Windows.Controls.RichTextBox".
Can you please tell me what I am missing?
Thank you!
View Complete Post