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

Hot Keys in RibbonBar

4 Answers 76 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Shreedhar
Top achievements
Rank 1
Shreedhar asked on 01 Sep 2017, 10:06 AM

Hi,

 

I have a disabled button in my ribbon bar and I want to have Hot key  ( Access Text ) is not highlighted when the button is disabled. How could I make not associated highlighted hot key when the button associated is disabled?

 

Please help me in this issue

 

BR,

Support ESW DVP

 

4 Answers, 1 is accepted

Sort by
0
Dilyan Traykov
Telerik team
answered on 05 Sep 2017, 01:50 PM
Hello Shreedhar,

In order for me to assist you further, could you please share more details on your exact requirements?

More specifically, please clarify what you mean by "highlighted hot key". Do you want to not display the key tip for the disabled items or do you wish to skip these items when navigating with the arrow keys? Providing some images of the desired end results will definitely be of help.

I'm looking forward to your reply.

Regards,
Dilyan Traykov
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.
0
Shreedhar
Top achievements
Rank 1
answered on 05 Sep 2017, 02:11 PM

Hi,

Here are two screenshots, HotKey1 is from my application and HotKey2 is from Microsoft word document. So I wanted to have the access text ( When we pressed Alt Key ) to be highlighted only when the button is enabled. Please let me know any more information is required

 

Thanks in Advance,

Shreedhar Bhat

0
Shreedhar
Top achievements
Rank 1
answered on 05 Sep 2017, 02:12 PM
Here's another screenshot
0
Dilyan Traykov
Telerik team
answered on 07 Sep 2017, 01:26 PM
Hello Shreedhar,

You can change the opacity of the KeyTipControl's Opacity when it is disabled with the following implicit style:

<Style TargetType="telerikRibbon:KeyTipControl" BasedOn="{StaticResource KeyTipControlStyle}">
    <Style.Triggers>
        <Trigger Property="IsEnabled" Value="False">
            <Trigger.EnterActions>
                <BeginStoryboard Name="IsEnabled">
                    <Storyboard>
                        <DoubleAnimation Storyboard.TargetProperty="Opacity" Duration="0:0:0" From="0.7" To="0.1" />
                    </Storyboard>
                </BeginStoryboard>
            </Trigger.EnterActions>
            <Trigger.ExitActions>
                <RemoveStoryboard BeginStoryboardName="IsEnabled" />
            </Trigger.ExitActions>
        </Trigger>
    </Style.Triggers>
</Style>

Please let me know if this provides the desired result.

Regards,
Dilyan Traykov
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 you to write beautiful native mobile apps using a single shared C# codebase.
Tags
RibbonView and RibbonWindow
Asked by
Shreedhar
Top achievements
Rank 1
Answers by
Dilyan Traykov
Telerik team
Shreedhar
Top achievements
Rank 1
Share this question
or