ToolTipOpening event on MapShape

6 posts, 0 answers
  1. Markus
    Markus avatar
    10 posts
    Member since:
    Aug 2010

    Posted 05 Sep 2012 Link to this post

    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
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 10 Sep 2012 Link to this post

    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.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Markus
    Markus avatar
    10 posts
    Member since:
    Aug 2010

    Posted 17 Sep 2012 Link to this post

    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
  5. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 19 Sep 2012 Link to this post

    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.

  6. Markus
    Markus avatar
    10 posts
    Member since:
    Aug 2010

    Posted 24 Sep 2012 Link to this post

    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
  7. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 26 Sep 2012 Link to this post

    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.

Back to Top
UI for WPF is Visual Studio 2017 Ready