Hi Sunil,
The PanZoomBar is actually a control; we can modify its position as we wanted. Here is a way to make it horizontal orientation.
1, hook a SizeChanged event on the container of the map. For example, in our installed sample "DisplayASimpleMap", map's container is "LayoutRoot".
SizeChanged="LayoutRoot_SizeChanged"
2, in the event implemtation, here is the code:
private void LayoutRoot_SizeChanged(object sender, SizeChangedEventArgs e)
{
Canvas.SetTop(Map1.MapTools.PanZoomBar, e.NewSize.Height - 360);
Canvas.SetLeft(Map1.MapTools.PanZoomBar, e.NewSize.Width);
RotateTransform rotateTransform1 = new RotateTransform();
rotateTransform1.Angle = -90;
rotateTransform1.CenterX = 0;
rotateTransform1.CenterY = 360;
Map1.MapTools.PanZoomBar.RenderTransform = rotateTransform1;
var panPanel = (Canvas)((Grid)((Canvas)VisualTreeHelper.GetChild(Map1.MapTools.PanZoomBar, 0)).Children[0]).Children[0];
panPanel.RenderTransformOrigin = new Point(.5, .5);
RotateTransform rotateTransform2 = new RotateTransform();
rotateTransform2.Angle = -90;
panPanel.RenderTransform = rotateTransform2;
}
Here is the screenshot.
Please feel free to let us know if you have more queries.
Thanks,
Howard