1
Vote

Error when page is scrolled

description

When i have tooltip in a grid rows and scroll grid with mouse wheel, silverlight screen becomes blank. Error is "servers must include a date response header RFC2616".

Detailed error is
Message: Unhandled Error in Silverlight Application Error HRESULT E_FAIL has been returned from a call to a COM component. 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, Boolean isBindingInStyleSetter)

at System.Windows.DependencyObject.SetValue(DependencyProperty property, Boolean b)
at System.Windows.Controls.ToolTip.set_IsOpen(Boolean value)

at Silverlight.Controls.ToolTips.ToolTipService.OnDataContextChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)

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.RefreshExpression(DependencyProperty dp)
at System.Windows.Data.BindingExpression.SendDataToTarget()

at System.Windows.Data.BindingExpression.SourceAcquired()

at System.Windows.Data.BindingExpression.System.Windows.IDataContextChangedListener.OnDataContextChanged(Object sender, DataContextChangedEventArgs e)

at System.Windows.Data.BindingExpression.DataContextChanged(Object sender, DataContextChangedEventArgs e)

at System.Windows.DataContextChangedEventHandler.Invoke(Object sender, DataContextChangedEventArgs e)

at System.Windows.FrameworkElement.OnDataContextChanged(DataContextChangedEventArgs e)

at System.Windows.FrameworkElement.OnAncestorDataContextChanged(DataContextChangedEventArgs e)

at System.Windows.FrameworkElement.NotifyDataContextChanged(DataContextChangedEventArgs e)

at System.Windows.FrameworkElement.OnTreeParentUpdated(DependencyObject newParent, Boolean bIsNewParentAlive)

at System.Windows.DependencyObject.UpdateTreeParent(IManagedPeer oldParent, IManagedPeer newParent, Boolean bIsNewParentAlive, Boolean keepReferenceToParent)

at MS.Internal.FrameworkCallbacks.ManagedPeerTreeUpdate(IntPtr oldParentElement, IntPtr parentElement, IntPtr childElement, Byte bIsParentAlive, Byte bKeepReferenceToParent,
Boolean canCreateParent)
Line: 1
Char: 1
Code: 0

comments

ThierryGauthier wrote Sep 5, 2013 at 3:51 PM

I had exactly this kind of error.
I was trying to use the tooltipservice.tooltip property on a textblock xaml tag in a cell template inside a datagrid. When playing around with the vertical scrollbar , most often I got the error discribed above.
Nevertheless, I found a workround (at least it worked for me). It was to explictly declare a tooltip tag block inside my textblock tag. Just like this :
                        <TextBlock Text="{Binding Key}" Foreground="Gold"  FontSize="9" TextTrimming="WordEllipsis" TextWrapping="NoWrap">
                            <ToolTipService.ToolTip>
                                <StackPanel Orientation="Vertical">
                                    <TextBlock Text="{Binding Key}" />
                                </StackPanel>
                            </ToolTipService.ToolTip>
                        </TextBlock>
And it solved it.
Hope this could help.