How to change the position of navigation control in WPF map

Within this forum we want to offer discussions all around our .NET based Map control including all .Net-language specific questions concerning calls of the xServer-API. Attention: xServer-relevant concepts can be found in further forums such as xRoute or xTour.
Post Reply
User avatar
webdirekt
Posts: 28
Joined: Wed Jul 15, 2015 10:18 am

How to change the position of navigation control in WPF map

Post 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.
Attachments
Wpf map screenshot
Wpf map screenshot
f.gailfuß
Posts: 8
Joined: Fri Sep 16, 2016 8:02 am

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

Post 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;
...
Frank Gailfuß
PTV GROUP Germany
User avatar
webdirekt
Posts: 28
Joined: Wed Jul 15, 2015 10:18 am

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

Post by webdirekt »

Thanks for the help your solution works for me.
Post Reply