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

Force tooltip to stay open

3 Answers 117 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Roberto
Top achievements
Rank 1
Roberto asked on 26 Nov 2014, 05:07 PM
Hi,

I have seen that there is a Sticky property in the WPF version of RadToolTip, is there any similar or alternate way to achieve the same with the Silverlight version?

Thanks

3 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 27 Nov 2014, 04:11 PM
Hello Roberto,

Which property do you have in mind exactly ? Basically the RadToolTip shares common APi between WPF and Silverlght.

If you create the RadToolTip in code behind without using RadToolTipService it is up to you to decide when / how / whether to open the RadToolTip and when / whether to close it with using its IsOpen property.  


Regards,
Petar Mladenov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Roberto
Top achievements
Rank 1
answered on 27 Nov 2014, 09:42 PM
Thanks, I have done that. I have created a ToolTip in code behind and used the RadToolTipService to set the tooltip to the control. However, I'm getting an exception that I don't get with the standard ToolTip when trying to set IsOpen to true inside an event.

{System.ArgumentNullException: Value cannot be null.
Parameter name: format
   at System.String.Format(IFormatProvider provider, String format, Object[] args)
   at Telerik.Windows.Controls.SRLoader`1.GetString(String defaultNamespace, String name, Object[] args)
   at Telerik.Windows.Controls.SR.GetString(String name, Object[] args)
   at Telerik.Windows.Controls.RadToolTip.CreateRootPopup(Popup popup, FrameworkElement child)
   at Telerik.Windows.Controls.RadToolTip.HookupRootPopup()
   at Telerik.Windows.Controls.RadToolTip.CreateRootPopupIfNeeded()
   at Telerik.Windows.Controls.RadToolTip.OpenPopup()
   at Telerik.Windows.Controls.RadToolTip.OnIsOpenChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e)
   at Telerik.Windows.PropertyMetadata.PropertyChangeHook.OnPropertyChanged(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 dp, Object value)
   at Telerik.Windows.Controls.RadToolTip.set_IsOpen(Boolean value)
   at MyControl.<>c__DisplayClass1.<.ctor>b__0(Object obj, RoutedEventArgs ev)
   at MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
   at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32 flags)}
0
Petar Mladenov
Telerik team
answered on 28 Nov 2014, 07:12 AM
Hello Roberto,

Could you please elaborate a bit more on your scenario and how you set up your tooltip ?
For Q3 release we fixed an exception with similar stack trace like yours , is it possible for you to test your scenario with Q3 dlls, it should be fixed ?
Also , there is no need to create a RadToolTip and then use RadToolTipService (RTTS) over it. This will create two nested tooltips because RTTS creates RadToolTip internally. You need to either create RadToolTip or use only RTTS without creating RadToolTip on your own.

Regards,
Petar Mladenov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
ToolTip
Asked by
Roberto
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Roberto
Top achievements
Rank 1
Share this question
or