Page 1 of 1

How to change the position of navigation control in WPF map

Posted: Fri Dec 16, 2016 12:10 pm
by webdirekt
We are using WPF map control and by default the map navigation is at top left.
We need the navigation at top right as per the attached screenshot.
Please help.

Re: How to change the position of navigation control in WPF

Posted: Fri Dec 16, 2016 2:44 pm
by f.gailfuß
Given the WPF map control in the variable wpfMap, the following code should move the navigation gadget to the right hand side:

Code: Select all

            
...
var nav = wpfMap.FindRelative<NavigationGadget>();
nav.HorizontalAlignment = HorizontalAlignment.Right;
...

Re: How to change the position of navigation control in WPF

Posted: Sat Dec 17, 2016 9:51 am
by webdirekt
Thanks for the help your solution works for me.