Hello there,
I am trying to implement cusom tooltips which can get focus and are interactive (they have a scrollbar for example).
Therefore I registered to the ToolTipOpening event of some WPF Ellipse objects (the ToolTip property is just set to some sensless string to force WPF to fire the event). In the event handler I just open a Popup with a BooleanAnimationUsingKeyFrames animation attatched which closes the popup after some seconds if it doesn't get focus.
This works very well, but when I tried the same with MapPolyLine it didn't - i.e. the event is not firing.
So my question is, if there is any event which is fired when a tooltip is requested.
Best regards,
Markus
I am trying to implement cusom tooltips which can get focus and are interactive (they have a scrollbar for example).
Therefore I registered to the ToolTipOpening event of some WPF Ellipse objects (the ToolTip property is just set to some sensless string to force WPF to fire the event). In the event handler I just open a Popup with a BooleanAnimationUsingKeyFrames animation attatched which closes the popup after some seconds if it doesn't get focus.
This works very well, but when I tried the same with MapPolyLine it didn't - i.e. the event is not firing.
So my question is, if there is any event which is fired when a tooltip is requested.
Best regards,
Markus
5 Answers, 1 is accepted
0
Hello Markus,
The MapShape (base class for all map shapes including MapPolyline) isn't a "true" WPF control (no matter it inherits from Control class). It is a kind of wrapper over the WPF shapes. Map shape propagates just several mouse events to the internal WPF shape:
MouseEnter
MouseLeave
MouseLeftButtonDown
MouseLeftButtonUp
MouseRightButtonDown
MouseRightButtonUp
MouseMove
MouseWheel
Regards,
The MapShape (base class for all map shapes including MapPolyline) isn't a "true" WPF control (no matter it inherits from Control class). It is a kind of wrapper over the WPF shapes. Map shape propagates just several mouse events to the internal WPF shape:
MouseEnter
MouseLeave
MouseLeftButtonDown
MouseLeftButtonUp
MouseRightButtonDown
MouseRightButtonUp
MouseMove
MouseWheel
Regards,
Andrey Murzov
the Telerik team
Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.
0
![](/forums/images/avatarimages/default.gif)
Markus
Top achievements
Rank 1
answered on 17 Sep 2012, 07:29 AM
Hello Andrey,
thx for your answer. So there is no way I can register for the ToolTipOpening event?
Another kind of related question would be wether it is possible to use MapShape as a base class for my own map shapes (and if it is - are there any examples/tutorials on how to do that?).
Best regards
Markus
thx for your answer. So there is no way I can register for the ToolTipOpening event?
Another kind of related question would be wether it is possible to use MapShape as a base class for my own map shapes (and if it is - are there any examples/tutorials on how to do that?).
Best regards
Markus
0
Hi Markus,
Unfortunately the answer on both of your questions is "No".
There is no way to register for the ToolTipOpening event.
You can't use MapShape as a base class for your own map shapes.
Regards,
Unfortunately the answer on both of your questions is "No".
There is no way to register for the ToolTipOpening event.
You can't use MapShape as a base class for your own map shapes.
Regards,
Andrey Murzov
the Telerik team
Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.
0
![](/forums/images/avatarimages/default.gif)
Markus
Top achievements
Rank 1
answered on 24 Sep 2012, 07:54 AM
Hi Andrey,
thx for your answer again.
If I can't use MapShape as a base class is there another way to implement custom map shapes (e.g. just implementing an interface)?
I am not afraid if this means there is a bit of work to do - it would just be important to know if it is possible.
Best regards,
Markus
thx for your answer again.
If I can't use MapShape as a base class is there another way to implement custom map shapes (e.g. just implementing an interface)?
I am not afraid if this means there is a bit of work to do - it would just be important to know if it is possible.
Best regards,
Markus
0
Hello Markus,
Unfortunately the answer on your question is "No" again. The map shapes are quite specific classes and there is no way to create custom map shapes besides those ones which exists in RadMap. But you can always show any framework element in the information layer (including any shape supported in WPF: Ellipse, Rectangle, Polygon and so on). Maybe it would be enough to implement your functionality?
All the best,
Unfortunately the answer on your question is "No" again. The map shapes are quite specific classes and there is no way to create custom map shapes besides those ones which exists in RadMap. But you can always show any framework element in the information layer (including any shape supported in WPF: Ellipse, Rectangle, Polygon and so on). Maybe it would be enough to implement your functionality?
All the best,
Andrey Murzov
the Telerik team
Time to cast your vote for Telerik! Tell DevPro Connections and Windows IT Pro why Telerik is your choice. Telerik is nominated in a total of 25 categories.