This is a migrated thread and some comments may be shown as answers.

Selecting RichText Hyperlink in a ChildWindow crashes Silverlight

5 Answers 78 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Ben
Top achievements
Rank 1
Ben asked on 01 Nov 2010, 06:28 PM
I have tracked down a bug i was receiving to an interesting case.  I have a RickTextBox which users can add a Hyperlink to, everything works fine, but when the user selects some text and while selecting they hover over the link the tooltip displays.  When you move the cursor more from there you get a COM Exception.

This only occurs when the textbox is inside a ChildWindow, removing the tooltip is an acceptable solution, but I don't know if I can do that that.  Any help would be greatly appreciated.  Attached is a screenshot.

Error:
    Error HRESULT E_FAIL has been returned from a call to a COM component.

StackTrace:
   at MS.Internal.XcpImports.CheckHResult(UInt32 hr)
   at MS.Internal.XcpImports.SetValue(IManagedPeerBase obj, DependencyProperty property, Boolean b)
   at System.Windows.DependencyObject.SetValue(DependencyProperty property, Boolean b)
   at System.Windows.Controls.ToolTip.BeginClosing()
   at System.Windows.Controls.ToolTip.OnIsOpenChanged(Boolean isOpen)
   at System.Windows.Controls.ToolTip.OnIsOpenPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
   at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
   at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet)
   at System.Windows.DependencyObject.SetValue(DependencyProperty property, Boolean b)
   at System.Windows.Controls.ToolTipService.UnregisterToolTip(UIElement owner)
   at System.Windows.Controls.ToolTipService.OnToolTipPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
   at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
   at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet)
   at System.Windows.Controls.ToolTipService.SetToolTip(DependencyObject element, Object value)
   at Telerik.Windows.Documents.Layout.SpanLayoutBox.SetupUIElement()
   at Telerik.Windows.Documents.Layout.SpanLayoutBox.GetUIElement()
   at Telerik.Windows.Documents.UI.UIInlinesLayer.UpdateUI()
   at Telerik.Windows.Documents.UI.UILayer.UpdateViewPort(RectangleF viewPort)
   at Telerik.Windows.Documents.UI.UILayer.UpdateViewPort(RectangleF viewPort, UIElementPool uiElementPool)
   at Telerik.Windows.Documents.UI.DocumentPresenterBase.UpdateUILayersViewPortSize(RectangleF viewPort)
   at Telerik.Windows.Documents.UI.DocumentPresenterBase.ArrangeOverride(Size finalSize)
   at System.Windows.FrameworkElement.ArrangeOverride(IntPtr nativeTarget, Single inWidth, Single inHeight, Single& outWidth, Single& outHeight)

5 Answers, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 04 Nov 2010, 09:40 AM
Hi Ben,

I tried to reproduce your error, but was unsuccessful. I have put a RadRichTextBox in a ChildWindow, inserted a Hyperlink through the InsertHyperlinkDialog, selected things around and moved the cursor randomly, but did not get an exception. Can you think of anything I should be do differently? Can you please also confirm which version of RadRichTextBox are you using? Did you try the same scenario using Q3 Beta?
It would be even better if you could send a demo, which illustrates the error.

Kind regards,
Iva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Ben
Top achievements
Rank 1
answered on 04 Nov 2010, 02:20 PM
Let me try it with the Q3 Beta.
0
Iva Toteva
Telerik team
answered on 11 Nov 2010, 08:53 AM
Hi Ben,

We managed to reproduce the issue. It seems that the tool-tips fire a bug in Silverlight. We will review our code to try to workaround this limitation.

If you have any other concerns, do not hesitate to contact us again.

Kind regards,
Iva
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Elena Sinelnikova
Top achievements
Rank 1
answered on 18 Jan 2012, 10:08 PM
   I have the same error when trying to double click in richtextbox to edit the header. Was this bug ever fixed? What would be the walk around?
0
Iva Toteva
Telerik team
answered on 20 Jan 2012, 08:40 PM
Hello Dennis,

This bug that Dan reported appeared in Q2 2010 and was fixed a long time ago.

Could you provide some more details on the version of the controls you are using, e.g. 2011.3.1220.1050 or 2011.3.1116.1040, as well as steps to reproduce the problem, because the issue is probably not related to the one a year ago. Please, do not forget to mention the version of Silverlight you are using - SL4 or SL5.

All the best,
Iva Toteva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
RichTextBox
Asked by
Ben
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Ben
Top achievements
Rank 1
Elena Sinelnikova
Top achievements
Rank 1
Share this question
or