Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
315
Prevent KeyTips when pressing the Alt Key
posted

Hi

The XamRibbon automatically shows KeyTips when the Alt-Key is pressed. Is it possible to prevent this behavior?

What's more, the Ribbon behaves really strange if it is collapsed. See the attached Screenshots:

Ribbon visible, Alt key pressed:

Ribbon collapsed, Alt key pressed:

We need to make sure, that at least no KeyTips show up if the Ribbon is collapsed. Even better if we could get rid of them altogether.

Thanks,
Patrick

<Window x:Class="WpfApplication2.Window1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:r="http://infragistics.com/Ribbon"
    Title="Window1" Height="300" Width="300">
   
    <Window.Resources>
        <BooleanToVisibilityConverter x:Key="boolToVisibility" />
    </Window.Resources>

    <DockPanel>
        <r:XamRibbon DockPanel.Dock="Top" Visibility="{Binding ElementName=visible, Path=IsChecked, Converter={StaticResource boolToVisibility}}">
            <r:XamRibbon.Tabs>
                <r:RibbonTabItem Header="Tab 1">
                    <r:RibbonGroup Caption="Group 1">
                        <r:ButtonTool Caption="Tool 1"/>
                        <r:ButtonTool Caption="Tool 2"/>
                    </r:RibbonGroup>
                </r:RibbonTabItem>
                <r:RibbonTabItem Header="Tab 2">
                    <r:RibbonGroup Caption="Group 2">
                        <r:ButtonTool Caption="Tool 3"/>
                        <r:ButtonTool Caption="Tool 4"/>
                    </r:RibbonGroup>
                </r:RibbonTabItem>
            </r:XamRibbon.Tabs>
        </r:XamRibbon>
        <Grid Background="Red">
            <ToggleButton Margin="20" Content="Visible" Name="visible" />
        </Grid>
    </DockPanel>
</Window>

Parents
  • 54937
    Offline posted

    patrickmaurer said:
    The XamRibbon automatically shows KeyTips when the Alt-Key is pressed. Is it possible to prevent this behavior?

    No, this is a requirement of the Microsoft Office UI Guidelines. Not having the keytips would be a violation of your license agreement with MS to use the Ribbon UI.

    patrickmaurer said:
    We need to make sure, that at least no KeyTips show up if the Ribbon is collapsed

    This seems like a bug. I'll see about getting an issue submitted for this.

Reply Children
No Data