map navigatation control style

2 posts, 0 answers
  1. Christopher
    Christopher avatar
    12 posts
    Member since:
    Jul 2008

    Posted 31 Aug 2010 Link to this post

    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
  2. Christopher
    Christopher avatar
    12 posts
    Member since:
    Jul 2008

    Posted 31 Aug 2010 Link to this post

    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
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top