hide zoom level choices

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

    Posted 24 Aug 2010 Link to this post

    How do you hide Region, City and Neighbord in the zool level control declaratively using xaml.  If not, how do you do it programmatically in c#? 

    Thanks

    Chris R.
  2. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 26 Aug 2010 Link to this post

    Hello Christopher,

    You can use the ZoomBarPresetsVisibility property to hide zoom level preset buttons.
    The sample XAML code is the following:
    <telerik:RadMap Name="radMap"
                    ZoomBarPresetsVisibility="Collapsed">
    </telerik:RadMap>

    Greetings,
    Andrey Murzov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
  4. Christopher
    Christopher avatar
    12 posts
    Member since:
    Jul 2008

    Posted 26 Aug 2010 Link to this post

    I would like to hide only a few of the buttons instead of them all.  Is there a way to hide City and Neighborhood?
  5. Andrey
    Admin
    Andrey avatar
    1681 posts

    Posted 27 Aug 2010 Link to this post

    Hi Christopher,

    As a workaround you can create new custom class that inherits from the MapZoomBar class. Then you can override the OnApplyTemplate method in order to remove unneeded buttons from template.
    I have attached a sample solution that uses custom zoom bar with removing Neighborhood and City level buttons.


    All the best,
    Andrey Murzov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top