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

Prevent Application Menu from closing

1 Answer 79 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Gert
Top achievements
Rank 1
Gert asked on 29 Jan 2018, 02:36 PM
Hi, I have an Application Menu within this structure:
<telerik:RadRibbonView>
   <telerik:RadRibbonView.ApplicationMenu  >
      <telerik:ApplicationMenu>
         <telerik:ApplicationMenu.Content>
            <Grid>...
In the code behind I fill the grid with an child of an RadTeeView:

 

RadTreeView tree = new RadTreeView();
tree.Items.Add(myTree);
myGrid.Children.Add(tree);

 

So far so good, every thing is working fine.

But how can I prevent that the menu closes when I left click (MouseDown) on the menu or the main window?

The Application Menu did not close when I left click on the:

-root element from my tree

-plus/arrow icon of on tree node

-element which was selected on the last visit

 

It would be nice to handle the closing of the app-menu by my self, is this possible?

1 Answer, 1 is accepted

Sort by
0
Dinko | Tech Support Engineer
Telerik team
answered on 01 Feb 2018, 10:27 AM
Hi Gert,

Thank you for your interest in RadRibbonView control.

To control in what condition the ApplicationMenu stays open you can set the IsApplicationMenuOpen property of the RadRibbonView. You can set it to true or false depending on your condition. Also, you can subscribe to the ApplicationMenuOpenStateChanged evet of the RadRibbonView which occurs every time the user open or close the ApplicationMenu.

You can take a look at the Application Menu help article so you can get familiar with this feature of the RadRibbonView.

Regards,
Dinko
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
GridView
Asked by
Gert
Top achievements
Rank 1
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or