Key Modifiers

The ModifierKey property allows you to use a modifier key, which in combination with the mouse action opens the RadContextMenu. When setting the ModifierKey property you can choose among several available values:

  • Alt - specifies that the Alt button must be pressed, in order to open the RadContextMenu.

  • Apple - specifies that the Apple button must be pressed, in order to open the RadContextMenu.

  • Control - specifies that the Control button must be pressed, in order to open the RadContextMenu.

  • None - specifies that none of the buttons must be pressed, in order to open the RadContextMenu. (default)

  • Shift - specifies that the Shift button must be pressed, in order to open the RadContextMenu.

  • Windows - specifies that the Windows button must be pressed, in order to open the RadContextMenu.

Here is an example of a RadContextMenu that requires the Control button to be pressed in order to open.

<TextBox Width="200" 
 VerticalAlignment="Top"> 
    <telerik:RadContextMenu.ContextMenu> 
        <telerik:RadContextMenu ModifierKey="Control"> 
            ... 
        </telerik:RadContextMenu> 
    </telerik:RadContextMenu.ContextMenu> 
</TextBox> 

If you run your application and just right-click the TextBox control, nothing will happen. The combination of holding the "Control" key and then right-clicking the button actually opens the RadContextMenu.

See Also

In this article