New to Telerik UI for WinForms? Start a free 30-day trial

Provides a resizable popup menu with item selection, keyboard navigation, and delayed child-menu opening.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class RadSizableDropDownMenu : RadEditorPopupControlBase, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider, IPopupControl, IItemsControl

Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadPopupControlBaseRadSizablePopupControlRadEditorPopupControlBaseRadSizableDropDownMenu...

Derived Classes: BaseFilterPopupPivotGroupFilterPopupPivotReportFilterPopup

Implements: IAnalyticsProviderIBindableComponentIComponentIComponentTreeHandlerIDisposableIDropTargetIItemsControlILayoutHandlerINotifyPropertyChangedIPopupControlISupportInitializeISupportInitializeNotificationISynchronizeInvokeIWin32Window...

Inherited Members RadSizablePopupControl.ControlDefinesThemeForElement(RadElement)RadSizablePopupControl.CreateChildItems(RadElement)RadSizablePopupControl.ThemeClassNameRadSizablePopupControl.SizingModeRadSizablePopupControl.SizingGripRadSizablePopupControl.SizingGripDockLayoutRadPopupControlBase.lastAlignmentRectangleRadPopupControlBase.dpiScaleFactorRadPopupControlBase.AnimationPropertiesRadPopupControlBase.GetMonitorDpiScaleFactor(Control)RadPopupControlBase.Show()RadPopupControlBase.Show(Point)RadPopupControlBase.Show(Control)RadPopupControlBase.Hide()RadPopupControlBase.ProcessFocusRequested(RadElement)RadPopupControlBase.WndProc(ref Message)RadPopupControlBase.OnPopupOpened()RadPopupControlBase.OnPopupOpening(CancelEventArgs)RadPopupControlBase.OnPopupClosed(RadPopupClosedEventArgs)RadPopupControlBase.OnPopupClosing(RadPopupClosingEventArgs)RadPopupControlBase.InitializeDropDownAnimation(Point)RadPopupControlBase.GetBackupSize()RadPopupControlBase.UpdateAeroEffectState()RadPopupControlBase.UpdateLocation(Rectangle)RadPopupControlBase.UpdateLocation()RadPopupControlBase.GetCorrectedLocation(Rectangle)RadPopupControlBase.GetCorrectedLocation(Screen, Rectangle)RadPopupControlBase.GetCorrectedLocation(Screen, Rectangle, Size)RadPopupControlBase.ApplySizingConstraints(Size, Screen)RadPopupControlBase.GetCurrentScreen(Rectangle)RadPopupControlBase.GetCurrentScreen()RadPopupControlBase.GetAvailableBoundsFromScreen(Screen)RadPopupControlBase.GetCorrectedHorizontalLocation(Screen, Rectangle, Point)RadPopupControlBase.GetCorrectedHorizontalLocation(Screen, Rectangle, Point, Size)RadPopupControlBase.GetCorrectedVerticalLocation(Screen, Rectangle, Point)RadPopupControlBase.GetCorrectedVerticalLocation(Screen, Rectangle, Point, Size)RadPopupControlBase.GetHorizontalPopupLocation(Rectangle)RadPopupControlBase.GetVerticalPopupLocation(Rectangle)RadPopupControlBase.AnimationStarting()RadPopupControlBase.OnAlternativeXLocationNeeded(Rectangle, Point, Rectangle)RadPopupControlBase.CheckMakeLastLocationCorrection(Rectangle, Point, Rectangle)RadPopupControlBase.CheckMakeLastLocationCorrection(Rectangle, Point, Rectangle, Size)RadPopupControlBase.OnAlternativeYLocationNeeded(Rectangle, Point, Rectangle)RadPopupControlBase.ShowPopupCore(Size, Point)RadPopupControlBase.ShowPopup(Rectangle)RadPopupControlBase.ClosePopup(PopupCloseInfo)RadPopupControlBase.OnPopupClosing(PopupCloseInfo)RadPopupControlBase.OnPopupClosed(PopupCloseInfo)RadPopupControlBase.ClosePopup(RadPopupCloseReason)RadPopupControlBase.CanClosePopup(RadPopupCloseReason)RadPopupControlBase.OnMouseWheel(Control, int)RadPopupControlBase.CallMouseWheel(MouseEventArgs)RadPopupControlBase.OnAnimationFinished(AnimationEventArgs)RadPopupControlBase.OnAnimating(AnimationEventArgs)RadPopupControlBase.ShouldRestoreAutoSizeRadPopupControlBase.DropDownAnimationDirectionRadPopupControlBase.EasingTypeRadPopupControlBase.AnimationFramesRadPopupControlBase.AnimationEnabledRadPopupControlBase.AnimationTypeRadPopupControlBase.NonAnimatedSizeRadPopupControlBase.FadeAnimationFramesRadPopupControlBase.FadeAnimationSpeedRadPopupControlBase.OpacityRadPopupControlBase.DropShadowRadPopupControlBase.EnableAeroEffectsRadPopupControlBase.FadeAnimationTypeRadPopupControlBase.FitToScreenModeRadPopupControlBase.ScreenSpaceModeRadPopupControlBase.AlignmentRectangleOverlapModeRadPopupControlBase.HorizontalAlignmentCorrectionModeRadPopupControlBase.VerticalAlignmentCorrectionModeRadPopupControlBase.VerticalPopupAlignmentRadPopupControlBase.HorizontalPopupAlignmentRadPopupControlBase.CreateParamsRadPopupControlBase.OwnerElementRadPopupControlBase.OwnerPopupRadPopupControlBase.LastShowDpiScaleFactorRadPopupControlBase.WindowsSettingsRadPopupControlBase.ChildrenRadPopupControlBase.MouseWheelRadPopupControlBase.FadeAnimationFinishedRadPopupControlBase.PopupOpeningRadPopupControlBase.PopupOpenedRadPopupControlBase.PopupClosingRadPopupControlBase.PopupClosedRadControl.isResizing2RadControl.isDisposing2RadControl.invalidResizeRectRadControl.isAccessibilityRequestedRadControl.Construct()RadControl.CreateBehavior()RadControl.CreateRootElement()RadControl.InitializeRootElement(RootRadElement)RadControl.LoadElementTree()RadControl.LoadElementTree(Size)RadControl.SetBackColorThemeOverrides()RadControl.ResetBackColorThemeOverrides()RadControl.SetForeColorThemeOverrides()RadControl.ResetForeColorThemeOverrides()RadControl.OnKeyDown(KeyEventArgs)RadControl.OnKeyUp(KeyEventArgs)RadControl.OnPreviewKeyDown(PreviewKeyDownEventArgs)RadControl.OnKeyPress(KeyPressEventArgs)RadControl.OnClick(EventArgs)RadControl.OnDoubleClick(EventArgs)RadControl.OnMouseUp(MouseEventArgs)RadControl.OnMouseEnter(EventArgs)RadControl.OnMouseLeave(EventArgs)RadControl.OnMouseHover(EventArgs)RadControl.OnMouseWheel(MouseEventArgs)RadControl.OnMouseCaptureChanged(EventArgs)RadControl.OnGotFocus(EventArgs)RadControl.OnLostFocus(EventArgs)RadControl.OnCreateControl()RadControl.OnHandleDestroyed(EventArgs)RadControl.OnParentChanged(EventArgs)RadControl.OnVisibleChanged(EventArgs)RadControl.OnFontChanged(EventArgs)RadControl.OnForeColorChanged(EventArgs)RadControl.OnBackColorChanged(EventArgs)RadControl.OnEnabledChanged(EventArgs)RadControl.OnBindingContextChanged(EventArgs)RadControl.OnLocationChanged(EventArgs)RadControl.OnPaddingChanged(EventArgs)RadControl.OnRightToLeftChanged(EventArgs)RadControl.OnLayout(LayoutEventArgs)RadControl.OnAutoSizeChanged(EventArgs)RadControl.OnInvalidated(RadElement)RadControl.OnLoad(Size)RadControl.OnCaptureLosing()RadControl.OnThemeChanged()RadControl.OnToolTipTextNeeded(object, ToolTipTextNeededEventArgs)RadControl.OnScreenTipNeeded(object, ScreenTipNeededEventArgs)RadControl.OnThemeNameChanged(ThemeNameChangedEventArgs)RadControl.ProcessMnemonic(char)RadControl.ProcessCaptureChangeRequested(RadElement, bool)RadControl.ProcessAutoSizeChanged(bool)RadControl.IsInputKey(Keys)RadControl.GetInputElement()RadControl.BeginInit()RadControl.EndInit()RadControl.OnNotifyPropertyChanged(string)RadControl.OnNotifyPropertyChanged(PropertyChangedEventArgs)RadControl.GetPreferredSize(Size)RadControl.SetBoundsCore(int, int, int, int, BoundsSpecified)RadControl.GetRootElementDesiredSize(int, int, int, int)RadControl.OnZoomGesture(ZoomGestureEventArgs)RadControl.OnRotateGesture(RotateGestureEventArgs)RadControl.OnPanGesture(PanGestureEventArgs)RadControl.OnTwoFingerTapGesture(GestureEventArgs)RadControl.OnPressAndTapGesture(PressAndTapGestureEventArgs)RadControl.OnGesture(GestureEventArgs)RadControl.ProcessGesture(Message)RadControl.EnableGesture(GestureType)RadControl.DisableGesture(GestureType)RadControl.Refresh()RadControl.SuspendUpdate()RadControl.ResumeUpdate()RadControl.ResumeUpdate(bool)RadControl.InvokeLayoutCallback(LayoutCallback)RadControl.RegisterHostedControl(RadHostItem)RadControl.UnregisterHostedControl(RadHostItem, bool)RadControl.ResolveStyleGroupForElement(StyleGroup, RadObject)RadControl.GetPlainText()RadControl.ShouldSerializeProperty(RadProperty)RadControl.ShouldSerializeProperty(RadProperty, RadObject)RadControl.ResetProperty(RadProperty, RadObject)RadControl.CanEditElementAtDesignTime(RadElement)RadControl.ProcessCodedUIMessage(ref IPCMessage)RadControl.FindPropertyInChildren(RadControl, IPCMessage)RadControl.ScaleControl(SizeF, BoundsSpecified)RadControl.PerformRadAutoScale(BoundsSpecified?)RadControl.SetRadAutoScale(bool)RadControl.EnableDpiScalingRadControl.EnableRadAutoScaleRadControl.EnableRadFormInitialDpiScalingRadControl.EnableImageDpiScalingRadControl.EnableSvgImagesRadControl.IsLoadedRadControl.ElementTreeRadControl.UseCompatibleTextRenderingDefaultValueRadControl.BehaviorRadControl.RootElementRadControl.PaddingRadControl.ThemeNameRadControl.TextRadControl.EnableThemingRadControl.ImageListRadControl.ImageScalingSizeRadControl.UseCompatibleTextRenderingRadControl.AutoSizeRadControl.MaximumSizeRadControl.MinimumSizeRadControl.FocusableRadControl.SiteRadControl.CausesValidationRadControl.IsInitializingRadControl.SmallImageListRadControl.SmallImageScalingSizeRadControl.IsDesignModeRadControl.IsDisplayedRadControl.FocusedElementRadControl.AllowShowFocusCuesRadControl.ShowItemToolTipsRadControl.CommandBindingsRadControl.EnableKeyMapRadControl.BackColorRadControl.ForeColorRadControl.FontRadControl.ValidationCancelRadControl.EnableAnalyticsRadControl.AnalyticsNameRadControl.EnableRadAccessibilityObjectsRadControl.EnableCodedUITestsRadControl.EnableCodedUITestsDefaultValueRadControl.EnableUIAutomationRadControl.EnableUIAutomationDefaultValueRadControl.ElementInvalidatedRadControl.ToolTipTextNeededRadControl.ScreenTipNeededRadControl.ThemeNameChangedRadControl.InitializedRadControl.PropertyChangedRadControl.ZoomGestureRadControl.RotateGestureRadControl.PanGestureRadControl.TwoFingerTapGestureRadControl.PressAndTapGesture...

Constructors

Initializes a resizable drop-down menu without an owner item.

C#
public RadSizableDropDownMenu()

Initializes a resizable drop-down menu owned by the specified item.

C#
public RadSizableDropDownMenu(RadItem owner)
Parameters:ownerRadItem

The menu item that owns this popup, or null for an unowned popup.

Properties

Gets the collection used for item selection and navigation; it is the same collection as Items.

C#
public RadItemOwnerCollection ActiveItems { get; }

Implements: IItemsControl.ActiveItems

Gets the menu items displayed by this popup.

C#
public RadItemOwnerCollection Items { get; }

Implements: IItemsControl.Items

Gets the visual element that owns this popup's item collection and sizeable layout.

C#
public SizableDropDownMenuElement MenuElement { get; }

Gets or sets whether the shared item-selection implementation is marked to process keyboard input.

C#
public bool ProcessKeyboard { get; set; }

Implements: IItemsControl.ProcessKeyboard

Gets or sets whether selection wraps between the last and first selectable items; enabled by default.

C#
public bool RollOverItemSelection { get; set; }

Implements: IItemsControl.RollOverItemSelection

Methods

Determines whether the associated item-selection implementation supports navigation with the key.

C#
public virtual bool CanNavigate(Keys keyData)
Parameters:keyDataKeys

The key to check.

Returns:

bool

false in the shared item-selection implementation.

Implements: IItemsControl.CanNavigate(Keys)

Determines whether the associated item-selection implementation can process the mnemonic.

C#
public virtual bool CanProcessMnemonic(char keyData)
Parameters:keyDatachar

The mnemonic character to check.

Returns:

bool

false in the shared item-selection implementation.

Implements: IItemsControl.CanProcessMnemonic(char)

Disposes the child-popup timer when managed resources are being released.

C#
protected override void Dispose(bool disposing)
Parameters:disposingbool

Overrides: RadPopupControlBase.Dispose(bool)

Gets the first item that is both visible and selectable.

C#
public RadItem GetFirstVisibleItem()
Returns:

RadItem

The first eligible item, or null if none exists.

Implements: IItemsControl.GetFirstVisibleItem()

Gets the last item that is both visible and selectable.

C#
public RadItem GetLastVisibleItem()
Returns:

RadItem

The last eligible item, or null if none exists.

Implements: IItemsControl.GetLastVisibleItem()

Gets the next visible and selectable item relative to item. Selection wraps at either end because rollover is enabled by default.

C#
public RadItem GetNextItem(RadItem item, bool forward)
Parameters:itemRadItem

The item to navigate from, or null to find the first item.

forwardbool

true to search forward; otherwise, search backward.

Returns:

RadItem

The next eligible item, or null if none is found.

Implements: IItemsControl.GetNextItem(RadItem, bool)

Gets the currently selected item, or null when no item is selected.

C#
public RadItem GetSelectedItem()
Returns:

RadItem

The selected menu item.

Implements: IItemsControl.GetSelectedItem()

Clears the deselected item's selected state and raises ItemDeselected.

C#
protected virtual void OnItemDeselected(ItemSelectedEventArgs args, object sender)
Parameters:argsItemSelectedEventArgs

The deselection event data.

senderobject

The item-selection manager that raised the notification.

Marks the selected menu item, notifies accessibility clients when appropriate, and raises ItemSelected.

C#
protected virtual void OnItemSelected(ItemSelectedEventArgs args, object sender)
Parameters:argsItemSelectedEventArgs

The selection event data.

senderobject

The item-selection manager that raised the notification.

Handles arrow-key navigation, Enter activation, and mnemonics before forwarding other applicable keys to the base popup.

C#
public override bool OnKeyDown(Keys keyData)
Parameters:keyDataKeys

The key pressed while the popup is active.

Returns:

bool

true when this menu handles the key; otherwise, the base result.

Overrides: RadPopupControlBase.OnKeyDown(Keys)

Stops a pending delayed child-popup opening before processing the mouse press.

C#
protected override void OnMouseDown(MouseEventArgs e)
Parameters:eMouseEventArgs

Overrides: RadControl.OnMouseDown(MouseEventArgs)

Updates item selection under the pointer and schedules a child popup to open after the system menu-show delay (or after 40 milliseconds when that delay is zero).

C#
protected override void OnMouseMove(MouseEventArgs e)
Parameters:eMouseEventArgs

Overrides: RadControl.OnMouseMove(MouseEventArgs)

Ensures the popup is at least as wide as its item layout before painting.

C#
protected override void OnPaint(PaintEventArgs e)
Parameters:ePaintEventArgs

Overrides: RadControl.OnPaint(PaintEventArgs)

Opens an item's child popup and selects its first visible item before performing the item's click.

C#
protected void PerformItemClick(RadMenuItemBase menuItem)
Parameters:menuItemRadMenuItemBase

The menu item to activate.

Opens the selected item's child popup for a right key, or closes this popup for a left key when the selected item is nested or this popup has an owner popup.

C#
protected virtual bool ProcessLeftRightNavigationKey(bool isLeft)
Parameters:isLeftbool

true for the left key; false for the right key.

Returns:

bool

true if the key performed a menu navigation action.

Activates a unique enabled, visible item matching the key mnemonic, or cycles focus among multiple matches.

C#
protected virtual bool ProcessMnemonic(Keys keyData)
Parameters:keyDataKeys

The key whose character is tested against item mnemonics.

Returns:

bool

true if one or more matching items were handled.

Selects the adjacent item for an up or down key, or the last/first item when nothing is selected.

C#
protected virtual bool ProcessUpDownNavigationKey(bool isUp)
Parameters:isUpbool

true to move upward; false to move downward.

Returns:

bool

true after handling the navigation key.

Selects the first item that is both visible and selectable.

C#
public RadItem SelectFirstVisibleItem()
Returns:

RadItem

The selected item, or null if none exists.

Implements: IItemsControl.SelectFirstVisibleItem()

Selects an item, deselecting the previous item first when it differs from item.

C#
public void SelectItem(RadItem item)
Parameters:itemRadItem

The item to select, or null to clear the current selection.

Implements: IItemsControl.SelectItem(RadItem)

Selects the last item that is both visible and selectable.

C#
public RadItem SelectLastVisibleItem()
Returns:

RadItem

The selected item, or null if none exists.

Implements: IItemsControl.SelectLastVisibleItem()

Selects the next visible and selectable item relative to item.

C#
public RadItem SelectNextItem(RadItem item, bool forward)
Parameters:itemRadItem

The item to navigate from.

forwardbool

true to search forward; otherwise, search backward.

Returns:

RadItem

The newly selected item, or null if none is found.

Implements: IItemsControl.SelectNextItem(RadItem, bool)

Events

Occurs when the popup deselects a menu item.

C#
public event ItemSelectedEventHandler ItemDeselected

Implements: IItemsControl.ItemDeselected

Occurs when the popup selects a menu item.

C#
public event ItemSelectedEventHandler ItemSelected

Implements: IItemsControl.ItemSelected