Infragistics(R) NetAdvantage(R) : WPF 2012.1
Keyboard Settings
E-mail your feedback on this topic.
Shared XAML > Interactions > xamDialogWindow > Using xamDialogWindow > Keyboard Settings

Glossary Item Box

You can enable keyboard navigation on the xamDialogWindow™ control. This allows your end users to move the dialog window using the arrows keys.

You can set how many pixels the dialog window will move by setting the KeyboardSettings object’s HorizontalStep and VerticalStep properties, as demonstrated in the following code snippet.

 

In XAML:

<Grid x:Name="LayoutRoot" Background="White">
   <ig:XamDialogWindow x:Name="DialogWindow" Width="200" 
                   Height="200" IsModal="True">
      <ig:XamDialogWindow.KeyboardSettings>
         <ig:KeyboardSettings AllowKeyboardNavigation="True" 
                                VerticalStep="25" HorizontalStep="25">
         </ig:KeyboardSettings>
      </ig:XamDialogWindow.KeyboardSettings>
   </ig:XamDialogWindow>
</Grid>


In Visual Basic:

Imports Infragistics.Controls.Interactions
...
DialogWindow.KeyboardSettings.AllowKeyboardNavigation = True
DialogWindow.KeyboardSettings.VerticalStep = 25
DialogWindow.KeyboardSettings.HorizontalStep = 25



In C#:

using Infragistics.Controls.Interactions;
...
DialogWindow.KeyboardSettings.AllowKeyboardNavigation = true;
DialogWindow.KeyboardSettings.VerticalStep = 25;
DialogWindow.KeyboardSettings.HorizontalStep = 25;


Related Topics

Custom Cursors

Customize Modal Dialog Window Background

Customize the Window Header Icon

Handle Moving Events

Handle Window State Changing Events

Modal and Modeless Dialog Windows

Position Minimized Dialog Window

Set the Dialog Window's Height and Width When Minimized

Start Up Position of xamDialogWindow

The xamDialogWindow Control's Behavior

Window Header Controls