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

ToolTipOpening event on MapShape

5 Answers 107 Views
Map
This is a migrated thread and some comments may be shown as answers.
Markus
Top achievements
Rank 1
Markus asked on 05 Sep 2012, 12:44 PM
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

5 Answers, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 10 Sep 2012, 08:52 AM
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,
Andrey Murzov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
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
0
Andrey
Telerik team
answered on 19 Sep 2012, 11:14 AM
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,
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
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
0
Andrey
Telerik team
answered on 26 Sep 2012, 02:20 PM
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,
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.

Tags
Map
Asked by
Markus
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Markus
Top achievements
Rank 1
Share this question
or