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

RadRibbonGallery without selection

4 Answers 107 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Yoann
Top achievements
Rank 1
Yoann asked on 14 Mar 2016, 02:19 PM

I was planning to use the RadRibbonGallery to lighten my already filled ribbon. I wanted to put my RadDropDownButtons inside of the Gallery, thus only showing by default only a few of them (the most important/common) and allowing the user to expand/scroll the Gallery to show the rest. 

But in this scenario, having selection for items in the gallery makes no sense. Is there an easy way to 'deactivate' this functionality for the RadRibbonGallery?

4 Answers, 1 is accepted

Sort by
0
Milena
Telerik team
answered on 16 Mar 2016, 11:38 AM
Hi Yoann,

I'm not quite sure if I understand right your scenario. Could you please elaborate a bit more and provide us more detailed information and maybe images of the look/behavior you need to achieve, e.g. what do you mean by "I was planning to use the RadRibbonGallery to lighten my already filled ribbon"? 

I'm looking forward to your reply.

Regards,
Milena
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Yoann
Top achievements
Rank 1
answered on 17 Mar 2016, 07:29 PM

Hi Milena, 

To simplify things, let's just say that I would like to use the RadRibbonGallery object, but I don't need the blue 'object selected' around each object (since each item in the Gallery will have an 'onClick' command on them), so the selection functionality are superfluous. 

 

 

0
Accepted
Milena
Telerik team
answered on 21 Mar 2016, 09:52 AM
Hi Yoann,

There is no easy way to disable selection in RibbonGallery. To achieve this you should use a custom gallery with custom items.
However, if you need only to hide " the blue 'object selected' around each object", you can simply set BorderThickness property of the GalleryItem to 0.
If you are using Xaml binaries:
<Style TargetType="telerik:RadGalleryItem">
<Setter Property="BorderThickness" Value="0"/>
</Style>

If you are using NoXaml binaries: 
<Style TargetType="telerik:RadGalleryItem" BasedOn="{StaticResource RadGalleryItemStyle}">
<Setter Property="BorderThickness" Value="0"/>
</Style>

* When using implicit styles you need to set the style's BasedOn property whenever you are redefining a style. This is because otherwise it would be a brand new style, removing all previous Setters like the Template, Fill, DefaultVisualStyl, etc.

Please have in mind that this style will not stop the selection functionality.

I hope this information helps.

Regards,
Milena
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
0
Yoann
Top achievements
Rank 1
answered on 22 Mar 2016, 07:15 PM
Thank you, this answers my need perfectly. 
Tags
RibbonView and RibbonWindow
Asked by
Yoann
Top achievements
Rank 1
Answers by
Milena
Telerik team
Yoann
Top achievements
Rank 1
Share this question
or