Hot Keys in RibbonBar

5 posts, 0 answers
  1. Shreedhar
    Shreedhar avatar
    5 posts
    Member since:
    Sep 2017

    Posted 01 Sep Link to this post

    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

     

  2. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    603 posts

    Posted 05 Sep Link to this post

    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.
  3. Shreedhar
    Shreedhar avatar
    5 posts
    Member since:
    Sep 2017

    Posted 05 Sep in reply to Dilyan Traykov Link to this post

    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

  4. Shreedhar
    Shreedhar avatar
    5 posts
    Member since:
    Sep 2017

    Posted 05 Sep in reply to Shreedhar Link to this post

    Here's another screenshot
  5. Dilyan Traykov
    Admin
    Dilyan Traykov avatar
    603 posts

    Posted 07 Sep Link to this post

    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 allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top