Draw square

3 posts, 1 answers
  1. Rieni De Rijke
    Rieni De Rijke avatar
    170 posts
    Member since:
    Mar 2010

    Posted 15 Nov 2010 Link to this post

    I saw in this post: http://www.telerik.com/community/forums/wpf/map/highlight-rectangle.aspx that it now is possible to draw circles or squares on a RadMap. Fantastic!
    Could you please give me a hint on how I just could draw a simple square and than find out the topleft and the bottomright of the square?

  2. Answer
    Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 17 Nov 2010 Link to this post

    Hi Rieni De Rijke,

    You can draw a square on the information layer using mouse events of the map control. The top-left and the bottom-right coordinates of the square you can get using the GeographicalBounds property of the MapRectangle instance.
    I have attached a sample solution. I hope it helps.

    Sincerely yours,
    Andrey Murzov
    the Telerik team
    See What's New in RadControls for WPF in Q3 2010 on Tuesday, November 16, 2010 11:00 AM - 12:00 PM EST or 10:00 PM - 11:00 PM EST: Register here>>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Rieni De Rijke
    Rieni De Rijke avatar
    170 posts
    Member since:
    Mar 2010

    Posted 17 Nov 2010 Link to this post

    Thank you for the answer and the sample.
Back to Top