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

When clicking on the bottom tool bar, the map moves

1 Answer 7 Views
Map
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 2
Veteran
Iron
Patrick asked on 12 Mar 2018, 10:34 AM

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

1 Answer, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 15 Mar 2018, 10:19 AM
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.
Tags
Map
Asked by
Patrick
Top achievements
Rank 2
Veteran
Iron
Answers by
Dilyan Traykov
Telerik team
Share this question
or