Approved
Last Updated: 31 Oct 2018 07:54 by ADMIN
ADMIN
Svetoslav
Created on: 05 Dec 2014 16:02
Category: RichTextBox
Type: Bug Report
2
RichTextBox: RadRichTextBox hosted in child window crashes when ToolTip is showing after document layout is being updated

Workaround: When the error is reproducible with revisions, inherit the RevisionsToolTipLayer class and override ResetPooledElementProperties method
protected override void ResetPooledElementProperties(object element)
{
    if (element is Path)
    {
        Path path = (Path)element;
        path.Data = null;
        path.Fill = null;
        path.Dispatcher.BeginInvoke(()=>
        ToolTipService.SetToolTip(path, null));
    }
}


When the error is thrown when using hyperlinks, setting the format string for hyperlinks to an empty string prevents the error but will also disable the hyperlink tooltips:
this.radRichTextBox.HyperlinkToolTipFormatString = string.Empty;
0 comments