Class
RadPopupControlBase

Represents a base class for all popup-forms used throughout the suite.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

cs-api-definition
public class RadPopupControlBase : RadControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider, IPopupControl

Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadPopupControlBase

Derived Classes: DesktopAlertPopupRadMenuItemPopupRadItemsPopupControlRadSizablePopupControlRibbonBarPopup

Implements: IAnalyticsProviderIBindableComponentIComponentIComponentTreeHandlerIDisposableIDropTargetILayoutHandlerINotifyPropertyChangedIPopupControlISupportInitializeISupportInitializeNotificationISynchronizeInvokeIWin32Window

Inherited Members RadControl.isResizing2RadControl.isDisposing2RadControl.invalidResizeRectRadControl.isAccessibilityRequestedRadControl.Construct()RadControl.CreateBehavior()RadControl.CreateRootElement()RadControl.CreateChildItems(RadElement)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.OnMouseDown(MouseEventArgs)RadControl.OnMouseUp(MouseEventArgs)RadControl.OnMouseEnter(EventArgs)RadControl.OnMouseLeave(EventArgs)RadControl.OnMouseMove(MouseEventArgs)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.OnPaint(PaintEventArgs)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.ThemeClassNameRadControl.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.PressAndTapGestureScrollableControl.ScrollStateAutoScrollingScrollableControl.ScrollStateHScrollVisibleScrollableControl.ScrollStateVScrollVisibleScrollableControl.ScrollStateUserHasScrolledScrollableControl.ScrollStateFullDragScrollableControl.AdjustFormScrollbars(bool)ScrollableControl.GetScrollState(int)ScrollableControl.OnPaintBackground(PaintEventArgs)ScrollableControl.SetDisplayRectLocation(int, int)ScrollableControl.ScrollControlIntoView(Control)ScrollableControl.ScrollToControl(Control)ScrollableControl.OnScroll(ScrollEventArgs)ScrollableControl.SetAutoScrollMargin(int, int)ScrollableControl.SetScrollState(int, bool)ScrollableControl.AutoScrollScrollableControl.AutoScrollMarginScrollableControl.AutoScrollPositionScrollableControl.AutoScrollMinSizeScrollableControl.DisplayRectangleScrollableControl.HScrollScrollableControl.HorizontalScrollScrollableControl.VScrollScrollableControl.VerticalScrollScrollableControl.ScrollControl.GetAccessibilityObjectById(int)Control.SetAutoSizeMode(AutoSizeMode)Control.GetAutoSizeMode()Control.AccessibilityNotifyClients(AccessibleEvents, int)Control.AccessibilityNotifyClients(AccessibleEvents, int, int)Control.BeginInvoke(Delegate)Control.BeginInvoke(Delegate, params object[])Control.BringToFront()Control.Contains(Control)Control.CreateAccessibilityInstance()Control.CreateControlsInstance()Control.CreateGraphics()Control.CreateHandle()Control.CreateControl()Control.DefWndProc(ref Message)Control.DestroyHandle()Control.DoDragDrop(object, DragDropEffects)Control.DrawToBitmap(Bitmap, Rectangle)Control.EndInvoke(IAsyncResult)Control.FindForm()Control.GetTopLevel()Control.RaiseKeyEvent(object, KeyEventArgs)Control.RaiseMouseEvent(object, MouseEventArgs)Control.Focus()Control.FromChildHandle(IntPtr)Control.FromHandle(IntPtr)Control.GetChildAtPoint(Point, GetChildAtPointSkip)Control.GetChildAtPoint(Point)Control.GetContainerControl()Control.GetScaledBounds(Rectangle, SizeF, BoundsSpecified)Control.GetNextControl(Control, bool)Control.GetStyle(ControlStyles)Control.InitLayout()Control.Invalidate(Region)Control.Invalidate(Region, bool)Control.Invalidate()Control.Invalidate(bool)Control.Invalidate(Rectangle)Control.Invalidate(Rectangle, bool)Control.Invoke(Delegate)Control.Invoke(Delegate, params object[])Control.InvokePaint(Control, PaintEventArgs)Control.InvokePaintBackground(Control, PaintEventArgs)Control.IsKeyLocked(Keys)Control.IsInputChar(char)Control.IsMnemonic(char, string)Control.LogicalToDeviceUnits(int)Control.LogicalToDeviceUnits(Size)Control.ScaleBitmapLogicalToDevice(ref Bitmap)Control.NotifyInvalidate(Rectangle)Control.InvokeOnClick(Control, EventArgs)Control.OnBackgroundImageChanged(EventArgs)Control.OnBackgroundImageLayoutChanged(EventArgs)Control.OnCausesValidationChanged(EventArgs)Control.OnContextMenuChanged(EventArgs)Control.OnContextMenuStripChanged(EventArgs)Control.OnCursorChanged(EventArgs)Control.OnDockChanged(EventArgs)Control.OnNotifyMessage(Message)Control.OnParentBackColorChanged(EventArgs)Control.OnParentBackgroundImageChanged(EventArgs)Control.OnParentBindingContextChanged(EventArgs)Control.OnParentCursorChanged(EventArgs)Control.OnParentEnabledChanged(EventArgs)Control.OnParentFontChanged(EventArgs)Control.OnParentForeColorChanged(EventArgs)Control.OnParentRightToLeftChanged(EventArgs)Control.OnParentVisibleChanged(EventArgs)Control.OnPrint(PaintEventArgs)Control.OnTabIndexChanged(EventArgs)Control.OnTabStopChanged(EventArgs)Control.OnTextChanged(EventArgs)Control.OnClientSizeChanged(EventArgs)Control.OnControlAdded(ControlEventArgs)Control.OnControlRemoved(ControlEventArgs)Control.OnHandleCreated(EventArgs)Control.OnDragEnter(DragEventArgs)Control.OnDragOver(DragEventArgs)Control.OnDragLeave(EventArgs)Control.OnDragDrop(DragEventArgs)Control.OnGiveFeedback(GiveFeedbackEventArgs)Control.OnEnter(EventArgs)Control.InvokeGotFocus(Control, EventArgs)Control.OnHelpRequested(HelpEventArgs)Control.OnInvalidated(InvalidateEventArgs)Control.OnLeave(EventArgs)Control.InvokeLostFocus(Control, EventArgs)Control.OnMarginChanged(EventArgs)Control.OnMouseDoubleClick(MouseEventArgs)Control.OnMouseClick(MouseEventArgs)Control.OnDpiChangedBeforeParent(EventArgs)Control.OnDpiChangedAfterParent(EventArgs)Control.OnMove(EventArgs)Control.OnQueryContinueDrag(QueryContinueDragEventArgs)Control.OnRegionChanged(EventArgs)Control.OnResize(EventArgs)Control.OnSizeChanged(EventArgs)Control.OnChangeUICues(UICuesEventArgs)Control.OnStyleChanged(EventArgs)Control.OnSystemColorsChanged(EventArgs)Control.OnValidating(CancelEventArgs)Control.OnValidated(EventArgs)Control.RescaleConstantsForDpi(int, int)Control.PerformLayout()Control.PerformLayout(Control, string)Control.PointToClient(Point)Control.PointToScreen(Point)Control.PreProcessMessage(ref Message)Control.PreProcessControlMessage(ref Message)Control.ProcessCmdKey(ref Message, Keys)Control.ProcessDialogChar(char)Control.ProcessDialogKey(Keys)Control.ProcessKeyEventArgs(ref Message)Control.ProcessKeyMessage(ref Message)Control.ProcessKeyPreview(ref Message)Control.RaiseDragEvent(object, DragEventArgs)Control.RaisePaintEvent(object, PaintEventArgs)Control.RecreateHandle()Control.RectangleToClient(Rectangle)Control.RectangleToScreen(Rectangle)Control.ReflectMessage(IntPtr, ref Message)Control.ResetMouseEventArgs()Control.ResetText()Control.ResumeLayout()Control.ResumeLayout(bool)Control.Scale(SizeF)Control.Select()Control.Select(bool, bool)Control.SelectNextControl(Control, bool, bool, bool, bool)Control.SendToBack()Control.SetBounds(int, int, int, int)Control.SetBounds(int, int, int, int, BoundsSpecified)Control.SetClientSizeCore(int, int)Control.SizeFromClientSize(Size)Control.SetStyle(ControlStyles, bool)Control.SetTopLevel(bool)Control.SetVisibleCore(bool)Control.RtlTranslateAlignment(HorizontalAlignment)Control.RtlTranslateAlignment(LeftRightAlignment)Control.RtlTranslateAlignment(ContentAlignment)Control.RtlTranslateHorizontal(HorizontalAlignment)Control.RtlTranslateLeftRight(LeftRightAlignment)Control.RtlTranslateContent(ContentAlignment)Control.SuspendLayout()Control.Update()Control.UpdateBounds()Control.UpdateBounds(int, int, int, int)Control.UpdateBounds(int, int, int, int, int, int)Control.UpdateZOrder()Control.UpdateStyles()Control.OnImeModeChanged(EventArgs)Control.AccessibilityObjectControl.AccessibleDefaultActionDescriptionControl.AccessibleDescriptionControl.AccessibleNameControl.AccessibleRoleControl.AllowDropControl.AnchorControl.AutoScrollOffsetControl.LayoutEngineControl.BackgroundImageControl.BackgroundImageLayoutControl.BindingContextControl.BottomControl.BoundsControl.CanFocusControl.CanRaiseEventsControl.CanSelectControl.CaptureControl.CheckForIllegalCrossThreadCallsControl.ClientRectangleControl.ClientSizeControl.CompanyNameControl.ContainsFocusControl.ContextMenuControl.ContextMenuStripControl.ControlsControl.CreatedControl.CursorControl.DataBindingsControl.DefaultBackColorControl.DefaultCursorControl.DefaultFontControl.DefaultForeColorControl.DefaultMarginControl.DefaultMaximumSizeControl.DefaultMinimumSizeControl.DefaultPaddingControl.DefaultSizeControl.DeviceDpiControl.IsDisposedControl.DisposingControl.DockControl.DoubleBufferedControl.EnabledControl.FocusedControl.FontHeightControl.HandleControl.HasChildrenControl.HeightControl.IsHandleCreatedControl.InvokeRequiredControl.IsAccessibleControl.IsMirroredControl.LeftControl.LocationControl.MarginControl.ModifierKeysControl.MouseButtonsControl.MousePositionControl.NameControl.ParentControl.ProductNameControl.ProductVersionControl.RecreatingHandleControl.RegionControl.RenderRightToLeftControl.ResizeRedrawControl.RightControl.RightToLeftControl.ScaleChildrenControl.SizeControl.TabIndexControl.TabStopControl.TagControl.TopControl.TopLevelControlControl.ShowKeyboardCuesControl.ShowFocusCuesControl.UseWaitCursorControl.VisibleControl.WidthControl.PreferredSizeControl.CanEnableImeControl.DefaultImeModeControl.ImeModeControl.ImeModeBaseControl.PropagatingImeModeControl.BackColorChangedControl.BackgroundImageChangedControl.BackgroundImageLayoutChangedControl.BindingContextChangedControl.CausesValidationChangedControl.ClientSizeChangedControl.ContextMenuChangedControl.ContextMenuStripChangedControl.CursorChangedControl.DockChangedControl.EnabledChangedControl.FontChangedControl.ForeColorChangedControl.LocationChangedControl.MarginChangedControl.RegionChangedControl.RightToLeftChangedControl.SizeChangedControl.TabIndexChangedControl.TabStopChangedControl.TextChangedControl.VisibleChangedControl.ClickControl.ControlAddedControl.ControlRemovedControl.DragDropControl.DragEnterControl.DragOverControl.DragLeaveControl.GiveFeedbackControl.HandleCreatedControl.HandleDestroyedControl.HelpRequestedControl.InvalidatedControl.PaddingChangedControl.PaintControl.QueryContinueDragControl.QueryAccessibilityHelpControl.DoubleClickControl.EnterControl.GotFocusControl.KeyDownControl.KeyPressControl.KeyUpControl.LayoutControl.LeaveControl.LostFocusControl.MouseClickControl.MouseDoubleClickControl.MouseCaptureChangedControl.MouseDownControl.MouseEnterControl.MouseLeaveControl.DpiChangedBeforeParentControl.DpiChangedAfterParentControl.MouseHoverControl.MouseMoveControl.MouseUpControl.MoveControl.PreviewKeyDownControl.ResizeControl.ChangeUICuesControl.StyleChangedControl.SystemColorsChangedControl.ValidatingControl.ValidatedControl.ParentChangedControl.ImeModeChangedComponent.Dispose()Component.GetService(Type)Component.ToString()Component.EventsComponent.ContainerComponent.DesignModeComponent.DisposedMarshalByRefObject.MemberwiseClone(bool)MarshalByRefObject.GetLifetimeService()MarshalByRefObject.InitializeLifetimeService()MarshalByRefObject.CreateObjRef(Type)

Constructors

RadPopupControlBase(RadElement)

Creates an instance of the RadPopupFormBase class.

Declaration

cs-api-definition
public RadPopupControlBase(RadElement owner)

Parameters

owner

RadElement

Fields

AnimationProperties

Declaration

cs-api-definition
public RadPopupControlBase.PopupAnimationProperties AnimationProperties

Field Value

RadPopupControlBase.PopupAnimationProperties

dpiScaleFactor

Declaration

cs-api-definition
protected SizeF dpiScaleFactor

Field Value

SizeF

lastAlignmentRectangle

Declaration

cs-api-definition
protected Rectangle lastAlignmentRectangle

Field Value

Rectangle

Properties

AlignmentRectangleOverlapMode

Gets or sets a value from the AlignmentRectangleOverlapMode which defines how the popup will be positioned according to the alignment rectangle when its location cannot be adjusted so that it meets all popup alignment and alignment correction mode requirements.

Declaration

cs-api-definition
public AlternativeCorrectionMode AlignmentRectangleOverlapMode { get; set; }

Property Value

AlternativeCorrectionMode

AnimationEnabled

Gets or sets a bool value determining whether popup animation is enabled.

Declaration

cs-api-definition
public bool AnimationEnabled { get; set; }

Property Value

bool

AnimationFrames

Gets or sets the count of the frames of the drop down animation.

Declaration

cs-api-definition
public int AnimationFrames { get; set; }

Property Value

int

AnimationType

Gets or sets a value determining what animation type to use when showing the popup.

Declaration

cs-api-definition
public PopupAnimationTypes AnimationType { get; set; }

Property Value

PopupAnimationTypes

Children

Gets a List<T> instance that represents a collection of logical children of this IPopupControl. The OwnerPopup property of these children would point to this IPopupControl instance.

Declaration

cs-api-definition
public List<IPopupControl> Children { get; }

Property Value

List<IPopupControl>

Implements IPopupControl.Children

CreateParams

Declaration

cs-api-definition
protected override CreateParams CreateParams { get; }

Property Value

CreateParams

Overrides ScrollableControl.CreateParams

DropDownAnimationDirection

Gets or sets the direction of the drop-down animation.

Declaration

cs-api-definition
public RadDirection DropDownAnimationDirection { get; set; }

Property Value

RadDirection

DropShadow

Gets or sets a boolean value which determines whether the popup drops a shadow.

Declaration

cs-api-definition
public bool DropShadow { get; set; }

Property Value

bool

EasingType

Gets or sets the easing type for the drop down animations.

Declaration

cs-api-definition
public RadEasingType EasingType { get; set; }

Property Value

RadEasingType

EnableAeroEffects

Enables the support for Windows Vista DWM effects.

Declaration

cs-api-definition
public bool EnableAeroEffects { get; set; }

Property Value

bool

FadeAnimationFrames

Gets or sets the frame count for the fade animation.

Declaration

cs-api-definition
public int FadeAnimationFrames { get; set; }

Property Value

int

FadeAnimationSpeed

Gets or sets the time interval for each fade animation frame.

Declaration

cs-api-definition
public int FadeAnimationSpeed { get; set; }

Property Value

int

FadeAnimationType

Gets or sets a value indicating the type of the fade animation.

Declaration

cs-api-definition
public FadeAnimationType FadeAnimationType { get; set; }

Property Value

FadeAnimationType

FitToScreenMode

Gets or sets a value from the FitToScreenModes enum which defines how the size of the popup is fit to the currently active screen.

Declaration

cs-api-definition
public FitToScreenModes FitToScreenMode { get; set; }

Property Value

FitToScreenModes

HorizontalAlignmentCorrectionMode

Defines how the popup will be horizontally aligned in case of lack of screen space.

Declaration

cs-api-definition
public AlignmentCorrectionMode HorizontalAlignmentCorrectionMode { get; set; }

Property Value

AlignmentCorrectionMode

HorizontalPopupAlignment

Gets or sets a value that defines the horizontal alignment of the popup based on the alignment rectangle passed in the ShowPopup method.

Declaration

cs-api-definition
public HorizontalPopupAlignment HorizontalPopupAlignment { get; set; }

Property Value

HorizontalPopupAlignment

LastShowDpiScaleFactor

Declaration

cs-api-definition
public SizeF LastShowDpiScaleFactor { get; set; }

Property Value

SizeF

NonAnimatedSize

Declaration

cs-api-definition
protected Size NonAnimatedSize { get; }

Property Value

Size

Opacity

Gets or sets a float value that determines the opacity of the popup. This property accepts values from 0.0 to 1.0. For example, to make the popup semi-transparent, set the property to 0.5.

Declaration

cs-api-definition
public float Opacity { get; set; }

Property Value

float

OwnerElement

Gets the RadElement that owns this popup.

Declaration

cs-api-definition
[Browsable(false)]
public RadElement OwnerElement { get; }

Property Value

RadElement

Implements IPopupControl.OwnerElement

OwnerPopup

Declaration

cs-api-definition
[Browsable(false)]
public IPopupControl OwnerPopup { get; }

Property Value

IPopupControl

Implements IPopupControl.OwnerPopup

ScreenSpaceMode

Gets or sets a value from the ScreenSpaceMode enum which determines what part of the screen is considered when positioning the popup.

Declaration

cs-api-definition
public ScreenSpaceMode ScreenSpaceMode { get; set; }

Property Value

ScreenSpaceMode

ShouldRestoreAutoSize

Declaration

cs-api-definition
protected virtual bool ShouldRestoreAutoSize { get; }

Property Value

bool

VerticalAlignmentCorrectionMode

Defines how the popup will be vertically aligned in case of lack of screen space.

Declaration

cs-api-definition
public AlignmentCorrectionMode VerticalAlignmentCorrectionMode { get; set; }

Property Value

AlignmentCorrectionMode

VerticalPopupAlignment

Gets or sets a value that defines the vertical alignment of the popup based on the alignment rectangle passed in the ShowPopup method.

Declaration

cs-api-definition
public VerticalPopupAlignment VerticalPopupAlignment { get; set; }

Property Value

VerticalPopupAlignment

WindowsSettings

Gets or sets the windows related setting.

Declaration

cs-api-definition
public WindowsSettings WindowsSettings { get; set; }

Property Value

WindowsSettings

Methods

AnimationStarting()

Fires when a drop-down animation is about to begin.

Declaration

cs-api-definition
protected virtual void AnimationStarting()

ApplySizingConstraints(Size, Screen)

Declaration

cs-api-definition
protected virtual Size ApplySizingConstraints(Size availableSize, Screen currentScreen)

Parameters

availableSize

Size

currentScreen

Screen

Returns

Size

CallMouseWheel(MouseEventArgs)

Raises the MouseWheel event.

Declaration

cs-api-definition
protected virtual void CallMouseWheel(MouseEventArgs e)

Parameters

e

MouseEventArgs

CanClosePopup(RadPopupCloseReason)

This method determines whether the IPopupControl can be closed. Used in the PopupManager class to prevent the IPopupControl from closing in specific occasions.

Declaration

cs-api-definition
public virtual bool CanClosePopup(RadPopupCloseReason reason)

Parameters

reason

RadPopupCloseReason

The reason why the IPopupControl is closed.

Returns

bool

True if the IPopupControl can be closed, otherwise false.

Implements IPopupControl.CanClosePopup(RadPopupCloseReason)

CheckMakeLastLocationCorrection(Rectangle, Point, Rectangle)

Checks whether the current alignment rectangle intersects with the popup's bounds according to a given popup location.

Declaration

cs-api-definition
protected virtual Point CheckMakeLastLocationCorrection(Rectangle alignmentRectangle, Point proposedLocation, Rectangle availableBounds)

Parameters

alignmentRectangle

Rectangle

An instance of the Rectangle struct that represents the current alignment rectangle.

proposedLocation

Point

An instance of the Point struct that represents the proposed popup location.

availableBounds

Rectangle

An instance of the Rectangle struct that represents the available bounds on the screen.

Returns

Point

An instance of the Point struct that represents the result of the operation.

CheckMakeLastLocationCorrection(Rectangle, Point, Rectangle, Size)

Checks whether the current alignment rectangle intersects with the popup's bounds according to a given popup location.

Declaration

cs-api-definition
protected virtual Point CheckMakeLastLocationCorrection(Rectangle alignmentRectangle, Point proposedLocation, Rectangle availableBounds, Size popupSize)

Parameters

alignmentRectangle

Rectangle

An instance of the Rectangle struct that represents the current alignment rectangle.

proposedLocation

Point

An instance of the Point struct that represents the proposed popup location.

availableBounds

Rectangle

An instance of the Rectangle struct that represents the available bounds on the screen.

popupSize

Size

The size of the popup.

Returns

Point

An instance of the Point struct that represents the result of the operation.

ClosePopup(PopupCloseInfo)

Closes the popup.

Declaration

cs-api-definition
public virtual void ClosePopup(PopupCloseInfo info)

Parameters

info

PopupCloseInfo

The info.

Implements IPopupControl.ClosePopup(PopupCloseInfo)

ClosePopup(RadPopupCloseReason)

Closes the IPopupControl.

Declaration

cs-api-definition
public virtual void ClosePopup(RadPopupCloseReason reason)

Parameters

reason

RadPopupCloseReason

Implements IPopupControl.ClosePopup(RadPopupCloseReason)

Dispose(bool)

Declaration

cs-api-definition
protected override void Dispose(bool disposing)

Parameters

disposing

bool

Overrides RadControl.Dispose(bool)

GetAvailableBoundsFromScreen(Screen)

Gets a Rectangle which represents the available bounds for the popup to show. By default this method returns the bounds of the screen.

Declaration

cs-api-definition
protected virtual Rectangle GetAvailableBoundsFromScreen(Screen screen)

Parameters

screen

Screen

An instance of the Screen class that represents the active screen where the popup is about to be shown.

Returns

Rectangle

An instance of the Rectangle struct that represents the available bounds for the popup based on the active screen.

GetBackupSize()

Declaration

cs-api-definition
protected virtual Size GetBackupSize()

Returns

Size

GetCorrectedHorizontalLocation(Screen, Rectangle, Point)

Calculates the horizontal position of the popup according to the current HorizontalPopupAlignment and AlignmentCorrectionMode.

Declaration

cs-api-definition
protected virtual Point GetCorrectedHorizontalLocation(Screen currentScreen, Rectangle alignmentRectangle, Point calculatedLocation)

Parameters

currentScreen

Screen

The screen in which the popup will be aligned.

alignmentRectangle

Rectangle

The alignment rectangle of the popup.

calculatedLocation

Point

The calculated location that will be corrected if needed.

Returns

Point

An instance of the Point struct that represents the corrected location of the popup

GetCorrectedHorizontalLocation(Screen, Rectangle, Point, Size)

Calculates the horizontal position of the popup according to the current HorizontalPopupAlignment and AlignmentCorrectionMode.

Declaration

cs-api-definition
protected virtual Point GetCorrectedHorizontalLocation(Screen currentScreen, Rectangle alignmentRectangle, Point calculatedLocation, Size popupSize)

Parameters

currentScreen

Screen

The screen in which the popup will be aligned.

alignmentRectangle

Rectangle

The alignment rectangle of the popup.

calculatedLocation

Point

The calculated location that will be corrected if needed.

popupSize

Size

The size of the popup.

Returns

Point

An instance of the Point struct that represents the corrected location of the popup

GetCorrectedLocation(Rectangle)

This method returns a point which defines the position of the popup. By default, aligns the popup based on the alignmentRectangle and the current alignment settings. You can adjust the alignment settings by settin the HorizontalPopupAlignment and VerticalPopupAlignment properties.

Declaration

cs-api-definition
protected virtual Point GetCorrectedLocation(Rectangle alignmentRectangle)

Parameters

alignmentRectangle

Rectangle

The alignment rectangle based on which the popup is aligned.

Returns

Point

An instance of the Point struct that represents the calculated position of the popup.

GetCorrectedLocation(Screen, Rectangle)

This method returns a point which defines the position of the popup. By default, aligns the popup based on the alignmentRectangle and the current alignment settings. You can adjust the alignment settings by settin the HorizontalPopupAlignment and VerticalPopupAlignment properties.

Declaration

cs-api-definition
protected virtual Point GetCorrectedLocation(Screen currentScreen, Rectangle alignmentRectangle)

Parameters

currentScreen

Screen

An instance of the Screen class that represents the screen where the popup is about to be positioned.

alignmentRectangle

Rectangle

The alignment rectangle based on which the popup is aligned.

Returns

Point

An instance of the Point struct that represents the calculated position of the popup.

GetCorrectedLocation(Screen, Rectangle, Size)

This method returns a point which defines the position of the popup. By default, aligns the popup based on the alignmentRectangle and the current alignment settings. You can adjust the alignment settings by settin the HorizontalPopupAlignment and VerticalPopupAlignment properties.

Declaration

cs-api-definition
protected virtual Point GetCorrectedLocation(Screen currentScreen, Rectangle alignmentRectangle, Size popupSize)

Parameters

currentScreen

Screen

An instance of the Screen class that represents the screen where the popup is about to be positioned.

alignmentRectangle

Rectangle

The alignment rectangle based on which the popup is aligned.

popupSize

Size

The size of the popup.

Returns

Point

An instance of the Point struct that represents the calculated position of the popup.

GetCorrectedVerticalLocation(Screen, Rectangle, Point)

Calculates the vertical position of the popup according to the current VerticalPopupAlignment and AlignmentCorrectionMode.

Declaration

cs-api-definition
protected virtual Point GetCorrectedVerticalLocation(Screen currentScreen, Rectangle alignmentRectangle, Point calculatedLocation)

Parameters

currentScreen

Screen

The screen in which the popup will be aligned.

alignmentRectangle

Rectangle

The alignment rectangle of the popup.

calculatedLocation

Point

The calculated location that will be corrected if needed.

Returns

Point

An integer that represents the corrected vertical location of the popup

GetCorrectedVerticalLocation(Screen, Rectangle, Point, Size)

Calculates the vertical position of the popup according to the current VerticalPopupAlignment and AlignmentCorrectionMode.

Declaration

cs-api-definition
protected virtual Point GetCorrectedVerticalLocation(Screen currentScreen, Rectangle alignmentRectangle, Point calculatedLocation, Size popupSize)

Parameters

currentScreen

Screen

The screen in which the popup will be aligned.

alignmentRectangle

Rectangle

The alignment rectangle of the popup.

calculatedLocation

Point

The calculated location that will be corrected if needed.

popupSize

Size

The size of the popup.

Returns

Point

An integer that represents the corrected vertical location of the popup

GetCurrentScreen()

Gets an instance of the Screen class that represents the screen where the popup is displayed.

Declaration

cs-api-definition
public Screen GetCurrentScreen()

Returns

Screen

GetCurrentScreen(Rectangle)

Gets the screen on which the popup will be displayed.

Declaration

cs-api-definition
protected virtual Screen GetCurrentScreen(Rectangle alignmentRectangle)

Parameters

alignmentRectangle

Rectangle

The alignment rectangle for the popup.

Returns

Screen

An instance of the Screen class that represents the screen where the popup will be displayed.

GetHorizontalPopupLocation(Rectangle)

Calculates the horizontal popup location based on the alignmentRectangle. This method uses the HorizontalPopupAlignment property setting.

Declaration

cs-api-definition
protected virtual int GetHorizontalPopupLocation(Rectangle alignmentRectangle)

Parameters

alignmentRectangle

Rectangle

An instance of the Rectangle struct that represents the alignment rectangle.

Returns

int

Returns an integer that represents the X coordinate of the popup.

GetMonitorDpiScaleFactor(Control)

Override the base DPI scaling behavior to prevent location calculation bugs in multi-monitor setups.

Problem: When displaying a popup on a secondary monitor with different DPI scaling than the primary monitor (e.g., Primary: 125%, Secondary: 100%), the popup's location is calculated incorrectly on first show.

Root Cause: The popup content is measured and arranged before being shown to determine the correct location. However, if the popup has never been displayed, it uses the primary monitor's DPI settings for measurement. After the first show, the DPI is correctly adjusted, but the initial measurements were wrong, causing incorrect popup positioning.

Solution: Use the owner element's DPI scale factor instead of the base implementation to ensure consistent DPI scaling from the start.

Declaration

cs-api-definition
protected override SizeF GetMonitorDpiScaleFactor(Control control)

Parameters

control

Control

Returns

SizeF

Overrides RadControl.GetMonitorDpiScaleFactor(Control)

GetVerticalPopupLocation(Rectangle)

Calculates the vertical popup location based on the alignmentRectangle. This method uses the VerticalPopupAlignment property setting.

Declaration

cs-api-definition
protected virtual int GetVerticalPopupLocation(Rectangle alignmentRectangle)

Parameters

alignmentRectangle

Rectangle

An instance of the Rectangle struct that represents the alignment rectangle.

Returns

int

Returns an integer that represents the Y coordinate of the popup.

Hide()

Closes the popup.

Declaration

cs-api-definition
public void Hide()

InitializeDropDownAnimation(Point)

Declaration

cs-api-definition
protected virtual void InitializeDropDownAnimation(Point location)

Parameters

location

Point

OnAlternativeXLocationNeeded(Rectangle, Point, Rectangle)

This method is executed when the popup needs to receive manual horizontal alignment. This can happen when there is no reasonable possibility for the alignment routines to define a proper horizontal position for the popup. In this way the developer is enabled to define a horizontal position according to their preferences.

Declaration

cs-api-definition
protected virtual Point OnAlternativeXLocationNeeded(Rectangle alignmentRectangle, Point proposedLocation, Rectangle availableBounds)

Parameters

alignmentRectangle

Rectangle

The proposed alignment rectangle with screen coordinates.

proposedLocation

Point

The proposed coordinates

availableBounds

Rectangle

The proposed available space for the popup.

Returns

Point

An instance of the Point struct that represents the location of the popup.

OnAlternativeYLocationNeeded(Rectangle, Point, Rectangle)

This method is executed when the popup needs to receive manual vertical alignment. This can happen when there is no reasonable possibility for the alignment routines to define a proper vertical position for the popup. In this way the developer is enabled to define a vertical position according to their preferences.

Declaration

cs-api-definition
protected virtual Point OnAlternativeYLocationNeeded(Rectangle alignmentRectangle, Point proposedLocation, Rectangle availableBounds)

Parameters

alignmentRectangle

Rectangle

The proposed alignment rectangle with screen coordinates.

proposedLocation

Point

The proposed coordinates

availableBounds

Rectangle

The proposed available space for the popup.

Returns

Point

An instance of the Point struct that represents the location of the popup.

OnAnimating(AnimationEventArgs)

Declaration

cs-api-definition
protected virtual void OnAnimating(AnimationEventArgs e)

Parameters

e

AnimationEventArgs

OnAnimationFinished(AnimationEventArgs)

Declaration

cs-api-definition
protected virtual void OnAnimationFinished(AnimationEventArgs args)

Parameters

args

AnimationEventArgs

OnKeyDown(Keys)

Executes when a key is pressed.

Declaration

cs-api-definition
public virtual bool OnKeyDown(Keys keyData)

Parameters

keyData

Keys

An instance of the Keys struct which contains the key information.

Returns

bool

A boolean value that determines whether the IPopupControl processes the message.

Implements IPopupControl.OnKeyDown(Keys)

OnMouseWheel(Control, int)

Determines whether the MouseWheel event is handled by the popup.

Declaration

cs-api-definition
public virtual bool OnMouseWheel(Control target, int delta)

Parameters

target

Control

delta

int

Returns

bool

Implements IPopupControl.OnMouseWheel(Control, int)

OnPopupClosed(PopupCloseInfo)

Called when popup is closed.

Declaration

cs-api-definition
protected virtual void OnPopupClosed(PopupCloseInfo info)

Parameters

info

PopupCloseInfo

The info.

OnPopupClosed(RadPopupClosedEventArgs)

Fires when the popup is closed.

Declaration

cs-api-definition
protected virtual void OnPopupClosed(RadPopupClosedEventArgs args)

Parameters

args

RadPopupClosedEventArgs

A RadPopupClosedEventArgs instance that contains information about what caused the popup to close.

OnPopupClosing(PopupCloseInfo)

Called when the popup is closing.

Declaration

cs-api-definition
protected virtual bool OnPopupClosing(PopupCloseInfo info)

Parameters

info

PopupCloseInfo

The info.

Returns

bool

OnPopupClosing(RadPopupClosingEventArgs)

Fires when the popup is about to close.

Declaration

cs-api-definition
protected virtual void OnPopupClosing(RadPopupClosingEventArgs args)

Parameters

args

RadPopupClosingEventArgs

A RadPopupClosingEventArgs instance that contains information about the event

OnPopupOpened()

Fires when the popup is opened.

Declaration

cs-api-definition
protected virtual void OnPopupOpened()

OnPopupOpening(CancelEventArgs)

Fires when the popup is about to open.

Declaration

cs-api-definition
protected virtual void OnPopupOpening(CancelEventArgs args)

Parameters

args

CancelEventArgs

A CancelEventArgs object that contains information about the event

ProcessFocusRequested(RadElement)

Processes a focus request from the specified element.

Declaration

cs-api-definition
protected override bool ProcessFocusRequested(RadElement element)

Parameters

element

RadElement

The element that requested the focus.

Returns

bool

True if focus is approved, false otherwise.

Overrides RadControl.ProcessFocusRequested(RadElement)

Show()

Shows the popup based on the value set to its Location property.

Declaration

cs-api-definition
public void Show()

Show(Control)

Shows the control based on the screen rectangle of a given control.

Declaration

cs-api-definition
public void Show(Control control)

Parameters

control

Control

The control which defines the location of the popup.

Show(Point)

Shows the popup at the location passed as a parameter. The location is in screen coordinates

Declaration

cs-api-definition
public void Show(Point screenLocation)

Parameters

screenLocation

Point

An instance of the Point struct that represents the location.

ShowPopup(Rectangle)

Shows the popup.

Declaration

cs-api-definition
public virtual void ShowPopup(Rectangle alignmentRectangle)

Parameters

alignmentRectangle

Rectangle

The alignment rectangle.

Implements IPopupControl.ShowPopup(Rectangle)

ShowPopupCore(Size, Point)

Declaration

cs-api-definition
protected virtual void ShowPopupCore(Size size, Point location)

Parameters

size

Size

location

Point

UpdateAeroEffectState()

Updates the Aero effects support upon property change.

Declaration

cs-api-definition
protected void UpdateAeroEffectState()

UpdateLocation()

Updates the location of the popup based on the last used alignment rectangle and the current alignment settings. You can adjust the alignment settings by using the VerticalPopupAlignment and HorizontalPopupAlignment properties.

Declaration

cs-api-definition
public void UpdateLocation()

UpdateLocation(Rectangle)

Updates the location of the popup based on the alignment rectangle and the current alignment settings. You can adjust the alignment settings by using the VerticalPopupAlignment and HorizontalPopupAlignment properties.

Declaration

cs-api-definition
public void UpdateLocation(Rectangle alignmentRectangle)

Parameters

alignmentRectangle

Rectangle

The alignment rectangle based on which the popup is positioned.

WndProc(ref Message)

Declaration

cs-api-definition
protected override void WndProc(ref Message m)

Parameters

m

Message

Overrides RadControl.WndProc(ref Message)

Events

FadeAnimationFinished

Fires when a fade animation has finished. The event args contain information about the type of the animation.

Declaration

cs-api-definition
public event RadPopupFadeAnimationFinishedEventHandler FadeAnimationFinished

Event Value

RadPopupFadeAnimationFinishedEventHandler

MouseWheel

Occurs when the mouse pointer is moved over the element.

Declaration

cs-api-definition
[Browsable(false)]
public event MouseEventHandler MouseWheel

Event Value

MouseEventHandler

PopupClosed

Fires when the popup is closed.

Declaration

cs-api-definition
public event RadPopupClosedEventHandler PopupClosed

Event Value

RadPopupClosedEventHandler

PopupClosing

Fires when the popup is about to be closed.

Declaration

cs-api-definition
public event RadPopupClosingEventHandler PopupClosing

Event Value

RadPopupClosingEventHandler

PopupOpened

Fires when the popup-form is opened.

Declaration

cs-api-definition
public event RadPopupOpenedEventHandler PopupOpened

Event Value

RadPopupOpenedEventHandler

PopupOpening

Fires when the popup-form is about to be opened.

Declaration

cs-api-definition
public event RadPopupOpeningEventHandler PopupOpening

Event Value

RadPopupOpeningEventHandler

In this article
DefinitionConstructorsRadPopupControlBase(RadElement)FieldsAnimationPropertiesdpiScaleFactorlastAlignmentRectanglePropertiesAlignmentRectangleOverlapModeAnimationEnabledAnimationFramesAnimationTypeChildrenCreateParamsDropDownAnimationDirectionDropShadowEasingTypeEnableAeroEffectsFadeAnimationFramesFadeAnimationSpeedFadeAnimationTypeFitToScreenModeHorizontalAlignmentCorrectionModeHorizontalPopupAlignmentLastShowDpiScaleFactorNonAnimatedSizeOpacityOwnerElementOwnerPopupScreenSpaceModeShouldRestoreAutoSizeVerticalAlignmentCorrectionModeVerticalPopupAlignmentWindowsSettingsMethodsAnimationStarting()ApplySizingConstraints(Size, Screen)CallMouseWheel(MouseEventArgs)CanClosePopup(RadPopupCloseReason)CheckMakeLastLocationCorrection(Rectangle, Point, Rectangle)CheckMakeLastLocationCorrection(Rectangle, Point, Rectangle, Size)ClosePopup(PopupCloseInfo)ClosePopup(RadPopupCloseReason)Dispose(bool)GetAvailableBoundsFromScreen(Screen)GetBackupSize()GetCorrectedHorizontalLocation(Screen, Rectangle, Point)GetCorrectedHorizontalLocation(Screen, Rectangle, Point, Size)GetCorrectedLocation(Rectangle)GetCorrectedLocation(Screen, Rectangle)GetCorrectedLocation(Screen, Rectangle, Size)GetCorrectedVerticalLocation(Screen, Rectangle, Point)GetCorrectedVerticalLocation(Screen, Rectangle, Point, Size)GetCurrentScreen()GetCurrentScreen(Rectangle)GetHorizontalPopupLocation(Rectangle)GetMonitorDpiScaleFactor(Control)GetVerticalPopupLocation(Rectangle)Hide()InitializeDropDownAnimation(Point)OnAlternativeXLocationNeeded(Rectangle, Point, Rectangle)OnAlternativeYLocationNeeded(Rectangle, Point, Rectangle)OnAnimating(AnimationEventArgs)OnAnimationFinished(AnimationEventArgs)OnKeyDown(Keys)OnMouseWheel(Control, int)OnPopupClosed(PopupCloseInfo)OnPopupClosed(RadPopupClosedEventArgs)OnPopupClosing(PopupCloseInfo)OnPopupClosing(RadPopupClosingEventArgs)OnPopupOpened()OnPopupOpening(CancelEventArgs)ProcessFocusRequested(RadElement)Show()Show(Control)Show(Point)ShowPopup(Rectangle)ShowPopupCore(Size, Point)UpdateAeroEffectState()UpdateLocation()UpdateLocation(Rectangle)WndProc(ref Message)EventsFadeAnimationFinishedMouseWheelPopupClosedPopupClosingPopupOpenedPopupOpening
Not finding the help you need?
Contact Support