When clicking on the bottom tool bar, the map moves

2 posts, 0 answers
  1. Patrick
    Patrick avatar
    418 posts
    Member since:
    Aug 2012

    Posted 12 Mar 2018 Link to this post

    Hello,

    Test done with the Office2013 theme.

    If I click on the bottom tool bar of the control, outside of the navigation controls, the map moves as if I click on the map!

    Regards

  2. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    949 posts

    Posted 15 Mar 2018 Link to this post

    Hello Patrick,

    This does seem to be an issue at our end and I have thus logged a new bug report in our feedback portal regarding it. As a thank you for reporting this, I've awarded you with some Telerik points.

    For the time being, you can handle the PreviewMouseDown event of the RadMap to prevent this movement in a similar fashion:

    private void radMap_PreviewMouseDown(object sender, MouseButtonEventArgs e)
    {
        var source = e.OriginalSource as FrameworkElement;
        var grid = source as Grid;
        var mapScale = source.ParentOfType<MapScale>();
        var locator = source.ParentOfType<MapMouseLocationIndicator>();
        if ((grid != null && grid.FindChildByType<MapScale>() != null) ||
            mapScale != null ||
            locator != null)
        {
            e.Handled = true;
        }
    }

    Please let me know whether such an approach would work for you.

    Regards,
    Dilyan Traykov
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top