Version

KeyActionMappings Property (UltraDayView)

Returns an UltraDayViewKeyActionMappings object that provides the ability to reconfigure the way the control responds to user keystrokes.
Syntax
'Declaration
 
Public ReadOnly Property KeyActionMappings As UltraDayViewKeyActionMappings
public UltraDayViewKeyActionMappings KeyActionMappings {get;}
Remarks

KeyCode ActionCode StateRequired StateDisallowed SpecialKeysRequired SpecialKeysDisallowed
Right SameTimeSlotNextDay TimeSlotSelected AppointmentInEdit, VisibleDaySelected None None
Left SameTimeSlotPreviousDay TimeSlotSelected AppointmentInEdit, VisibleDaySelected None None
Up PreviousTimeSlot TimeSlotSelected AppointmentInEdit None None
Down NextTimeSlot TimeSlotSelected AppointmentInEdit None None
Home FirstWorkingHourTimeSlot None AppointmentInEdit None None
End LastWorkingHourTimeSlot None AppointmentInEdit None None
Prior PageUp None None None None
Next PageDown None None None None
Right NextVisibleDay VisibleDaySelected AppointmentInEdit, TimeSlotSelected None None
Left PreviousVisibleDay VisibleDaySelected AppointmentInEdit, TimeSlotSelected None None
Delete DeleteSelectedAppointments AppointmentsSelected AppointmentInEdit None None
Enter EndCurrentEditSaveChanges AppointmentInEdit 0 None None
Escape EndCurrentEditDiscardChanges AppointmentInEdit 0 None None

Example
The following code demonstrates how to create a new KeyActionMapping for the UltraDayView control. The new mapping will cause the UltraDayView control to select the first working hour time slot when the 'W' key is pressed and the control is not currently in the process of selecting time slots and the 'alt' key is not pressed.

Imports System.Diagnostics
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule

	Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load

		Dim newMapping As UltraDayViewKeyActionMapping

		' Add a custom key/action mapping to the UltraDayView that 
		' will navigate to the first working-hour time slot 
		' when the control has focus but is not selecting time slots 
		' and the users presses the ‘W’ key (unless the
		' 'alt’ key is also pressed). 
		newMapping = New UltraDayViewKeyActionMapping(Keys.W, UltraDayViewAction.FirstWorkingHourTimeSlot, UltraDayViewState.SelectingTimeSlots, 0, Infragistics.Win.SpecialKeys.Alt, 0)

		Me.UltraDayView1.KeyActionMappings.Add(newMapping)

	End Sub
using System.Diagnostics;
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;

		private void Form1_Load(object sender, System.EventArgs e)
		{

			UltraDayViewKeyActionMapping newMapping = null;

			// Add a custom key/action mapping to the UltraDayView that 
			// will navigate to the time slot containing the time 8 AM
			// when the control has focus but is not selecting time slots 
			// and the users presses the ‘W’ key (unless the
			// 'alt’ key is also pressed). 
			newMapping = new UltraDayViewKeyActionMapping(Keys.W, UltraDayViewAction.FirstWorkingHourTimeSlot, UltraDayViewState.SelectingTimeSlots, 0, Infragistics.Win.SpecialKeys.Alt, 0);

			this.ultraDayView1.KeyActionMappings.Add(newMapping);
		
		}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also