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

map navigatation control style

1 Answer 56 Views
Map
This is a migrated thread and some comments may be shown as answers.
Christopher
Top achievements
Rank 1
Christopher asked on 31 Aug 2010, 05:50 PM
Is there a way to move the map navigation control from the bottom center to the bottom right or left?  Also, can we change the height and width to make it smaller?

Also, I changed the MaxZoomLevel="6" MinZoomLevel="2" on my map provider.  But now when I use the slider in the map zoom control, the range of the slider didn't update.  Is it possible to update the slider's range?

Thanks

1 Answer, 1 is accepted

Sort by
0
Christopher
Top achievements
Rank 1
answered on 31 Aug 2010, 07:18 PM
Never mind. I figured it out. I basically just inherited from MapZoomBar with the below code and declared in xaml where I wanted to align the control.

<

 

 

local:CustomMapZoomBar x:Name="mapZoomBar"

 

 

 

VerticalAlignment="Bottom"

 

 

 

HorizontalAlignment="Right"/>

 



public

 

 

class CustomMapZoomBar : MapZoomBar

 

{

 

 

public bool isTemplateUpdated;

 

 

 

public override void OnApplyTemplate()

 

{

 

 

if (!this.isTemplateUpdated)

 

{

 

 

this.isTemplateUpdated = true;

 

 

 

var slider = this.GetTemplateChild("PART_ZoomSlider") as RadSlider;

 

 

 

if (slider != null)

 

{

slider.Minimum = 2;

slider.Maximum = 6;

}

}

 

 

base.OnApplyTemplate();

 

}

}


Thanks,

Chris R.
Interknowlogy
Tags
Map
Asked by
Christopher
Top achievements
Rank 1
Answers by
Christopher
Top achievements
Rank 1
Share this question
or