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

Quick Access Menu Questions

5 Answers 171 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Kelly
Top achievements
Rank 1
Kelly asked on 09 Dec 2011, 10:05 PM
Hello,

1)  I have a QuickAccessToolbar defined in a RibbonView thus:

<telerikRibbon:RadRibbonView.QuickAccessToolBar>
    <telerikRibbon:QuickAccessToolBar CustomizationMenuVisibility="Visible">
        <telerikRibbon:RadRibbonButton Text="Refresh" SmallImage="refresh.png" telerik:KeyTipService.AccessText="1"
              Command="{Binding DataContext.RefreshButton, ElementName=Ribbon}" CommandParameter="{Binding}"/>
        </telerikRibbon:QuickAccessToolBar>
 </telerikRibbon:RadRibbonView.QuickAccessToolBar>

The Quick Access Menu options "Show below the ribbon" and "Minimize the Ribbon" are disabled until the RadRibbonButton in the toolbar is clicked. There is no connection between them that I can find in the xaml or in my View Model. The button is enabled/disabled by a "CanExecute" handler using the DelegateCommand interface. Any ideas why these menu options are disabled by default?

2)  Even if the RibbonView's IsMinimizable property is set to False, the "Minimize the Ribbon" menu option is still enabled. Clicking it does nothing.

3)  If IsMinimizable is set to True, after minimizing the ribbon using either the Quick Access Menu or the minimize button, the menu's minimize option still says "Minimize the Ribbon" even when the ribbon is minimized. Shouldn't this say "Maximize the Ribbon" or something to that effect?

Thank you,

KO

5 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 14 Dec 2011, 02:15 PM
Hello Kelly,

Thank you for reporting this issue. I can confirm that the last two points in your description are bugs in the control and therefore I logged an item in our PITS so that you can track its progress. I also updated your Telerik account accordingly.

However, I wasn't able to reproduce the first issue and this is why I attached the sample solution I created to test the scenario. Can you please modify it to reproduce the issue so that we can investigate it on our side? Thank you in advance.

Best wishes,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Kelly
Top achievements
Rank 1
answered on 14 Dec 2011, 09:10 PM
Hi Tina,

The sample project is missing all of its image files and won't compile. If you replace the zip, I'll certainly try to reproduce the issue!

Thank you,

Kelly
0
Tina Stancheva
Telerik team
answered on 15 Dec 2011, 09:23 AM
Hi Kelly,

Please accpet my apology for this. I reattached the solution with the corresponding images.

Kind regards,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Kelly
Top achievements
Rank 1
answered on 20 Dec 2011, 07:55 PM
Tina,

Thank you for the new version, however I can't reproduce the behavior in your project. I have verified that I was wrong about one thing though - the problem does not seem to be tied to the RadRibbonButton defined in the Quick Access Toolbar. I changed its CanExecute handler to always return false, so the button is never available. Other operations in my backstage menu somehow eventually make the menu options become enabled. I really have no idea what turns them on. Frankly, I wouldn't know how to disable or enable the menu options in the Quick Access Menu if I wanted to!

I have noticed one thing, though. - the Customization menu is disabled when the Backstage menu is open, which makes sense. When my window opens, I set IsBackstageOpen = true in the code-behind. I do this in a DispatchTimer routine, because I found that when I set it in the Loaded event, I had some display problems with the Backstage menu. Specifically, I found that the default RadRibbonBackstageItem whose IsSelectable property is True, was not adorned with highlighting normally present for the selected Backstage menu item. Opening the Backstage menu in a timer routine fixed this. But I think it may be causing this other problem. If I DO NOT open the Backstage after the window is initialized, the problem disappears. I tried setting IsBackstageOpen to true in your project, but it works as expected.

Just so you don't think I'm crazy, I'm attaching a pic showing the menu options turned off. I don't know how to proceed - I think this is a minor bug, but I can't tell you what exacerbates it. It is obviously something I'm doing in code-behind that no one else is doing.  My workaround (which I'm perfectly comfortable with) is CustomizationMenuVisibility="Collapsed".

Thanks for your help Tina!

Kelly
0
Tina Stancheva
Telerik team
answered on 23 Dec 2011, 05:59 PM
Hello Kelly,

Thank you for getting back to us. In your post you say that you're opening the backstage when the window is initialized, but I am not sure what window are you referring to. Do you use the RadRibbonWindow control? What is the version of the Telerik assemblies you're using? Can you send us the definition of the UserControl that hosts the RadRibbonView control and the related code-behind logic?

 I tried different approaches but I still wasn't able to reproduce the behavior you described. This is why we'll highly appreciate any addition information you can give us about the layout of the Ribbon and its containers as well as about your custom code-behind that you believe is causing the issue.

Thank you in advance for all your cooperation on this matter.

Kind regards,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
RibbonView and RibbonWindow
Asked by
Kelly
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Kelly
Top achievements
Rank 1
Share this question
or