Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Ribbonbar > Changing click behaviour of the Start Menu

Answered Changing click behaviour of the Start Menu

Feed from this thread
  • Christopher avatar

    Posted on Feb 23, 2009 (permalink)

    I would like to change the behaviour of the Start Menu on a Rad Ribbon Bar to be more like the windows start menu:  Click once to show and click again to hide.

    I tried adding a new event handler to the             radRibbonBar1.RibbonBarElement.ApplicationButtonElement.Click event, but I'm not sure what I should be checking for (i.e. a menu objects visibility) to enable this.

    What's the recommended way to achieve this?

    Reply

  • Answer Deyan Deyan admin's avatar

    Posted on Feb 26, 2009 (permalink)

    Hi Christopher,

    Thanks for your question.

    I have played a bit with the ApplicationButton and I managed to find out how to achieve the behavior you need. I am using the ApplicationButtonElement.Click and ApplicationButtonElement.MouseDown events in my solution. Take a look at this code snippet:

    void ApplicationButtonElement_MouseDown(object sender, MouseEventArgs e) 
        if (!this.isDropDownOpen) 
        { 
            this.isDropDownOpen = true
        } 
        else 
        { 
             this.isDropDownOpen = false
        } 
     
    void ApplicationButtonElement_Click(object sender, EventArgs e) 
         if (!this.isDropDownOpen) 
         { 
                    this.radRibbonBar1.RibbonBarElement.ApplicationButtonElement.HideDropDown(); 
         } 

    I have also added a boolean flag to my Form class in order to mark the state of the Application Button which is part of my solution.

    I hope this will help you.

    Do not hesitate to get back to me in case of further questions.

    Sincerely yours,
    Deyan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Ribbonbar > Changing click behaviour of the Start Menu
Related resources for "Changing click behaviour of the Start Menu"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]