MapLine within different UserControl

2 posts, 0 answers
  1. Alexis
    Alexis avatar
    1 posts
    Member since:
    Jun 2014

    Posted 18 Jun 2014 Link to this post

    Hi,

    I was wondering if it were possible to place MapLine controls into a different UserControl.
    In other words, I want to separate the radMap control from the MapLine controls by using a UserControl.
    So I would have a parent containing the map and a child containing the lines:

    ParentUserControl
    <InformationLayer>
    <Views:
    ChildUserControl/>
    <InformationLayer/>


    ChildUserControl
    <MapLine Point="0,0" Point2="10,10"/>

    Unfortunately, it doesn't seem to work at all... Any ideas what might be the best solution?

    Thank you,
    Alexis
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 19 Jun 2014 Link to this post

    Hello Alexis,

    Unfortunately, map shape objects can't be used within user control or be encapsulated into any other control because of the nature of these object. The map shape objects are quite specific and must be added into the information layer directly.

    Regards,
    Andrey Murzov
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top