Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
200
Automatically execute ShowFewerButtons command
posted

By default, I want my xamOutlookbar's to show fewer buttons.

How can I accomplish this?

Is there a way that I could trigger the ShowFewerButtons command without having any type of user interaction (e.g. button click)?

 

Parents
  • 21382
    Verified Answer
    posted

    Well the command can be attached to any event if you retemplate the control.  But if you are just looking to do it one time you could probably just do this in the loaded event of your page.  

     

     

                if (mybar.NavigationAreaGroups.Count > 0)

                    mybar.NavigationAreaMaxGroups = mybar.NavigationAreaGroups.Count - 1;

Reply Children
No Data