'Declaration Public Enum CalendarComboAction Inherits System.Enum
public enum CalendarComboAction : System.Enum
Member | Description |
---|---|
CancelCloseUp | Cancels any value or selection change since the control dropped down. |
CloseMonthPopup | Close the month popup window. |
CloseUp | Closes up the dropdown portion. |
DropDown | Drops down the calendar. |
FirstDayOfMonth | Move to the first day of the currently active month. |
FirstDayOfMonthKeepSelection | Move to the first day of the currently active month. |
FirstVisibleDay | Move to the first visible day in the calendar. |
FirstVisibleDayKeepSelection | Move to the first visible day in the calendar. |
FirstVisibleDayOfWeek | Move to the first visible day of the week. |
FirstVisibleDayOfWeekKeepSelection | Move to the first visible day of the week. |
LastDayOfMonth | Move to the last day of the currently active month. |
LastDayOfMonthKeepSelection | Move to the last day of the currently active month. |
LastVisibleDay | Move to the last visible day in the calendar. |
LastVisibleDayKeepSelection | Move to the last visible day in the calendar. |
LastVisibleDayOfWeek | Move to the last visible day of the week. |
LastVisibleDayOfWeekKeepSelection | Move to the last visible day of the week. |
NextControl | Move to the next control. |
NextDay | Move to the next day. |
NextDayKeepSelection | Move to the next day. |
PreviousControl | Move to the previous control. |
PreviousDay | Move to the previous day. |
PreviousDayKeepSelection | Move to the previous day. |
SameDayInNextMonth | Same date in the next month. |
SameDayInNextMonthKeepSelection | Same date in the next month. |
SameDayInNextWeek | Move to the same day in the next week. |
SameDayInNextWeekKeepSelection | Move to the same day in the next week. |
SameDayInPreviousMonth | Same date in the previous month. |
SameDayInPreviousMonthKeepSelection | Same date in the previous month. |
SameDayInPreviousWeek | Move to the same day in the previous week. |
SameDayInPreviousWeekKeepSelection | Move to the same day in the previous week. |
ScrollNext | Scroll to next month(s). Same action as clicking on a scroll button. |
ScrollPrevious | Scroll to previous month(s). Same action as clicking on a scroll button. |
SpinDown | Performs the same action as pressing the spin down button. |
SpinUp | Performs same action as pressing the spin up button. |
ToggleDaySelection | Select/Unselect active day. |
ToggleDropDown | Toggles the state of the calendar dropdown. |
UpdateValue | Updates the value based on the text in the control. |
Imports Infragistics.Win Imports Infragistics.Win.UltraWinSchedule Imports Infragistics.Win.UltraWinSchedule.CalendarCombo Private Sub CustomizeKeyActionMappings() ' Create a new KeyActionMapping object, which we will add to ' the control's KeyActionMappings collection. The new KeyActionMapping ' object will have the following property settings: ' ' KeyCode = Enter ' ActionCode = DropDown ' StateDisallowed = DroppedDown ' StateRequired = None ' SpecialKeysDisallowed = All (disallow the action if either Alt, Ctrl, or Shift is pressed) ' SpecialKeysRequired = 0 (no special keys required to perform the action) ' Dim dropDownKeyMapping As KeyActionMapping = New KeyActionMapping(Keys.Enter, CalendarComboAction.DropDown, CalendarComboState.DroppedDown, 0, SpecialKeys.All, 0) ' Remove all KeyActionMappings whose action is DropDown or ToggleDropDown Dim keyMapping As KeyActionMapping For Each keyMapping In Me.ultraCalendarCombo1.KeyActionMappings If (keyMapping.ActionCode = CalendarComboAction.DropDown Or keyMapping.ActionCode = CalendarComboAction.ToggleDropDown) Then Me.ultraCalendarCombo1.KeyActionMappings.Remove(keyMapping) End If Next ' Now we can add the custom mapping Me.ultraCalendarCombo1.KeyActionMappings.Add(dropDownKeyMapping) End Sub
using Infragistics.Win; using Infragistics.Win.UltraWinSchedule; using Infragistics.Win.UltraWinSchedule.CalendarCombo; private void CustomizeKeyActionMappings() { //-------------------------------------------------------------------------------- // KeyActionMappings // // This example adds a custom key action mapping so that the control's // dropdown is displayed when the Enter key is pressed. //-------------------------------------------------------------------------------- // Create a new KeyActionMapping object, which we will add to // the control's KeyActionMappings collection. The new KeyActionMapping // object will have the following property settings: // // KeyCode = Enter // ActionCode = DropDown // StateDisallowed = DroppedDown // StateRequired = None // SpecialKeysDisallowed = All (disallow the action if either Alt, Ctrl, or Shift is pressed) // SpecialKeysRequired = 0 (no special keys required to perform the action) // KeyActionMapping dropDownKeyMapping = new KeyActionMapping( Keys.Enter, // KeyCode CalendarComboAction.DropDown, // ActionCode CalendarComboState.DroppedDown, // StateDisallowed 0, // StateRequired SpecialKeys.All, // SpecialKeysDisallowed 0 // SpecialKeysRequired ); // Remove all KeyActionMappings whose action is DropDown or ToggleDropDown foreach( KeyActionMapping keyMapping in this.ultraCalendarCombo1.KeyActionMappings ) { if ( keyMapping.ActionCode == CalendarComboAction.DropDown || keyMapping.ActionCode == CalendarComboAction.ToggleDropDown ) this.ultraCalendarCombo1.KeyActionMappings.Remove( keyMapping ); } // Now we can add the custom mapping this.ultraCalendarCombo1.KeyActionMappings.Add( dropDownKeyMapping ); }
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