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)
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)