New to Telerik UI for WinFormsStart a free 30-day trial

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

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
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

Creates an instance of the RadPopupFormBase class.

C#
public RadPopupControlBase(RadElement owner)
Parameters:ownerRadElement

Fields

C#
public RadPopupControlBase.PopupAnimationProperties AnimationProperties
C#
protected SizeF dpiScaleFactor
C#
protected Rectangle lastAlignmentRectangle

Properties

Gets or sets a value from the AlternativeCorrectionMode 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.

C#
public AlternativeCorrectionMode AlignmentRectangleOverlapMode { get; set; }

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

C#
public bool AnimationEnabled { get; set; }

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

C#
public int AnimationFrames { get; set; }

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

C#
public PopupAnimationTypes AnimationType { get; set; }

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.

C#
public List<IPopupControl> Children { get; }

Implements: IPopupControl.Children

C#
protected override CreateParams CreateParams { get; }

Overrides: ScrollableControl.CreateParams

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

C#
public RadDirection DropDownAnimationDirection { get; set; }

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

C#
public bool DropShadow { get; set; }

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

C#
public RadEasingType EasingType { get; set; }

Enables the support for Windows Vista DWM effects.

C#
public bool EnableAeroEffects { get; set; }

Gets or sets the frame count for the fade animation.

C#
public int FadeAnimationFrames { get; set; }

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

C#
public int FadeAnimationSpeed { get; set; }

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

C#
public FadeAnimationType FadeAnimationType { get; set; }

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

C#
public FitToScreenModes FitToScreenMode { get; set; }

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

C#
public AlignmentCorrectionMode HorizontalAlignmentCorrectionMode { get; set; }

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

C#
public HorizontalPopupAlignment HorizontalPopupAlignment { get; set; }
C#
public SizeF LastShowDpiScaleFactor { get; set; }
C#
protected Size NonAnimatedSize { get; }

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.

C#
public float Opacity { get; set; }

Gets the RadElement that owns this popup.

C#
[Browsable(false)]
public RadElement OwnerElement { get; }

Implements: IPopupControl.OwnerElement

C#
[Browsable(false)]
public IPopupControl OwnerPopup { get; }

Implements: IPopupControl.OwnerPopup

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

C#
public ScreenSpaceMode ScreenSpaceMode { get; set; }
C#
protected virtual bool ShouldRestoreAutoSize { get; }

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

C#
public AlignmentCorrectionMode VerticalAlignmentCorrectionMode { get; set; }

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

C#
public VerticalPopupAlignment VerticalPopupAlignment { get; set; }

Gets or sets the windows related setting.

C#
public WindowsSettings WindowsSettings { get; set; }

Methods

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

C#
protected virtual void AnimationStarting()
C#
protected virtual Size ApplySizingConstraints(Size availableSize, Screen currentScreen)
Parameters:availableSizeSizecurrentScreenScreenReturns:

Size

Raises the MouseWheel event.

C#
protected virtual void CallMouseWheel(MouseEventArgs e)
Parameters:eMouseEventArgs

An instance of the MouseEventArgs class containing the event data.

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

C#
public virtual bool CanClosePopup(RadPopupCloseReason reason)
Parameters:reasonRadPopupCloseReason

The reason why the IPopupControl is closed.

Returns:

bool

True if the IPopupControl can be closed, otherwise false.

Implements: IPopupControl.CanClosePopup(RadPopupCloseReason)

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

C#
protected virtual Point CheckMakeLastLocationCorrection(Rectangle alignmentRectangle, Point proposedLocation, Rectangle availableBounds, Size popupSize)
Parameters:alignmentRectangleRectangle

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

proposedLocationPoint

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

availableBoundsRectangle

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

popupSizeSize

The size of the popup.

Returns:

Point

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

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

C#
protected virtual Point CheckMakeLastLocationCorrection(Rectangle alignmentRectangle, Point proposedLocation, Rectangle availableBounds)
Parameters:alignmentRectangleRectangle

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

proposedLocationPoint

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

availableBoundsRectangle

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.

Closes the popup.

C#
public virtual void ClosePopup(PopupCloseInfo info)
Parameters:infoPopupCloseInfo

The info.

Implements: IPopupControl.ClosePopup(PopupCloseInfo)

Closes the IPopupControl.

C#
public virtual void ClosePopup(RadPopupCloseReason reason)
Parameters:reasonRadPopupCloseReason

The reason why the IPopupControl is closed.

Implements: IPopupControl.ClosePopup(RadPopupCloseReason)

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

Overrides: RadControl.Dispose(bool)

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

C#
protected virtual Rectangle GetAvailableBoundsFromScreen(Screen screen)
Parameters:screenScreen

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.

C#
protected virtual Size GetBackupSize()
Returns:

Size

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

C#
protected virtual Point GetCorrectedHorizontalLocation(Screen currentScreen, Rectangle alignmentRectangle, Point calculatedLocation, Size popupSize)
Parameters:currentScreenScreen

The screen in which the popup will be aligned.

alignmentRectangleRectangle

The alignment rectangle of the popup.

calculatedLocationPoint

The calculated location that will be corrected if needed.

popupSizeSize

The size of the popup.

Returns:

Point

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

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

C#
protected virtual Point GetCorrectedHorizontalLocation(Screen currentScreen, Rectangle alignmentRectangle, Point calculatedLocation)
Parameters:currentScreenScreen

The screen in which the popup will be aligned.

alignmentRectangleRectangle

The alignment rectangle of the popup.

calculatedLocationPoint

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

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 setting the HorizontalPopupAlignment and VerticalPopupAlignment properties.

C#
protected virtual Point GetCorrectedLocation(Rectangle alignmentRectangle)
Parameters:alignmentRectangleRectangle

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.

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 setting the HorizontalPopupAlignment and VerticalPopupAlignment properties.

C#
protected virtual Point GetCorrectedLocation(Screen currentScreen, Rectangle alignmentRectangle, Size popupSize)
Parameters:currentScreenScreen

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

alignmentRectangleRectangle

The alignment rectangle based on which the popup is aligned.

popupSizeSize

The size of the popup.

Returns:

Point

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

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 setting the HorizontalPopupAlignment and VerticalPopupAlignment properties.

C#
protected virtual Point GetCorrectedLocation(Screen currentScreen, Rectangle alignmentRectangle)
Parameters:currentScreenScreen

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

alignmentRectangleRectangle

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.

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

C#
protected virtual Point GetCorrectedVerticalLocation(Screen currentScreen, Rectangle alignmentRectangle, Point calculatedLocation, Size popupSize)
Parameters:currentScreenScreen

The screen in which the popup will be aligned.

alignmentRectangleRectangle

The alignment rectangle of the popup.

calculatedLocationPoint

The calculated location that will be corrected if needed.

popupSizeSize

The size of the popup.

Returns:

Point

An integer that represents the corrected vertical location of the popup

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

C#
protected virtual Point GetCorrectedVerticalLocation(Screen currentScreen, Rectangle alignmentRectangle, Point calculatedLocation)
Parameters:currentScreenScreen

The screen in which the popup will be aligned.

alignmentRectangleRectangle

The alignment rectangle of the popup.

calculatedLocationPoint

The calculated location that will be corrected if needed.

Returns:

Point

An integer that represents the corrected vertical location of the popup

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

C#
public Screen GetCurrentScreen()
Returns:

Screen

Gets the screen on which the popup will be displayed.

C#
protected virtual Screen GetCurrentScreen(Rectangle alignmentRectangle)
Parameters:alignmentRectangleRectangle

The alignment rectangle for the popup.

Returns:

Screen

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

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

C#
protected virtual int GetHorizontalPopupLocation(Rectangle alignmentRectangle)
Parameters:alignmentRectangleRectangle

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

Returns:

int

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

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.

C#
protected override SizeF GetMonitorDpiScaleFactor(Control control)
Parameters:controlControlReturns:

SizeF

Overrides: RadControl.GetMonitorDpiScaleFactor(Control)

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

C#
protected virtual int GetVerticalPopupLocation(Rectangle alignmentRectangle)
Parameters:alignmentRectangleRectangle

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

Returns:

int

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

Closes the popup.

C#
public void Hide()
C#
protected virtual void InitializeDropDownAnimation(Point location)
Parameters:locationPoint

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.

C#
protected virtual Point OnAlternativeXLocationNeeded(Rectangle alignmentRectangle, Point proposedLocation, Rectangle availableBounds)
Parameters:alignmentRectangleRectangle

The proposed alignment rectangle with screen coordinates.

proposedLocationPoint

The proposed coordinates

availableBoundsRectangle

The proposed available space for the popup.

Returns:

Point

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

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.

C#
protected virtual Point OnAlternativeYLocationNeeded(Rectangle alignmentRectangle, Point proposedLocation, Rectangle availableBounds)
Parameters:alignmentRectangleRectangle

The proposed alignment rectangle with screen coordinates.

proposedLocationPoint

The proposed coordinates

availableBoundsRectangle

The proposed available space for the popup.

Returns:

Point

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

C#
protected virtual void OnAnimating(AnimationEventArgs e)
Parameters:eAnimationEventArgs
C#
protected virtual void OnAnimationFinished(AnimationEventArgs args)
Parameters:argsAnimationEventArgs

Executes when a key is pressed.

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

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)

Determines whether the MouseWheel event is handled by the popup.

C#
public virtual bool OnMouseWheel(Control target, int delta)
Parameters:targetControl

The control that is the target of the MouseWheel event.

deltaint

The amount of wheel movement.

Returns:

bool

True if the event is handled by the popup; otherwise, false.

Implements: IPopupControl.OnMouseWheel(Control, int)

Called when popup is closed.

C#
protected virtual void OnPopupClosed(PopupCloseInfo info)
Parameters:infoPopupCloseInfo

The info.

Fires when the popup is closed.

C#
protected virtual void OnPopupClosed(RadPopupClosedEventArgs args)
Parameters:argsRadPopupClosedEventArgs

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

Called when the popup is closing.

C#
protected virtual bool OnPopupClosing(PopupCloseInfo info)
Parameters:infoPopupCloseInfo

The info.

Returns:

bool

Fires when the popup is about to close.

C#
protected virtual void OnPopupClosing(RadPopupClosingEventArgs args)
Parameters:argsRadPopupClosingEventArgs

A RadPopupClosingEventArgs instance that contains information about the event

Fires when the popup is opened.

C#
protected virtual void OnPopupOpened()

Fires when the popup is about to open.

C#
protected virtual void OnPopupOpening(CancelEventArgs args)
Parameters:argsCancelEventArgs

A CancelEventArgs object that contains information about the event

Processes a focus request from the specified element.

C#
protected override bool ProcessFocusRequested(RadElement element)
Parameters:elementRadElement

The element that requested the focus.

Returns:

bool

True if focus is approved, false otherwise.

Overrides: RadControl.ProcessFocusRequested(RadElement)

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

C#
public void Show()

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

C#
public void Show(Control control)
Parameters:controlControl

The control which defines the location of the popup.

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

C#
public void Show(Point screenLocation)
Parameters:screenLocationPoint

An instance of the Point struct that represents the location.

Shows the popup.

C#
public virtual void ShowPopup(Rectangle alignmentRectangle)
Parameters:alignmentRectangleRectangle

The alignment rectangle.

Implements: IPopupControl.ShowPopup(Rectangle)

C#
protected virtual void ShowPopupCore(Size size, Point location)
Parameters:sizeSizelocationPoint

Updates the Aero effects support upon property change.

C#
protected void UpdateAeroEffectState()

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.

C#
public void UpdateLocation()

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.

C#
public void UpdateLocation(Rectangle alignmentRectangle)
Parameters:alignmentRectangleRectangle

The alignment rectangle based on which the popup is positioned.

C#
protected override void WndProc(ref Message m)
Parameters:mMessage

Overrides: RadControl.WndProc(ref Message)

Events

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

C#
public event RadPopupFadeAnimationFinishedEventHandler FadeAnimationFinished

Occurs when the mouse pointer is moved over the element.

C#
[Browsable(false)]
public event MouseEventHandler MouseWheel

Fires when the popup is closed.

C#
public event RadPopupClosedEventHandler PopupClosed

Fires when the popup is about to be closed.

C#
public event RadPopupClosingEventHandler PopupClosing

Fires when the popup-form is opened.

C#
public event RadPopupOpenedEventHandler PopupOpened

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

C#
public event RadPopupOpeningEventHandler PopupOpening
In this article
DefinitionConstructorsRadPopupControlBase(RadElement)FieldsAnimationPropertiesdpiScaleFactorlastAlignmentRectanglePropertiesAlignmentRectangleOverlapModeAnimationEnabledAnimationFramesAnimationTypeChildrenCreateParamsDropDownAnimationDirectionDropShadowEasingTypeEnableAeroEffectsFadeAnimationFramesFadeAnimationSpeedFadeAnimationTypeFitToScreenModeHorizontalAlignmentCorrectionModeHorizontalPopupAlignmentLastShowDpiScaleFactorNonAnimatedSizeOpacityOwnerElementOwnerPopupScreenSpaceModeShouldRestoreAutoSizeVerticalAlignmentCorrectionModeVerticalPopupAlignmentWindowsSettingsMethodsAnimationStarting()ApplySizingConstraints(Size, Screen)CallMouseWheel(MouseEventArgs)CanClosePopup(RadPopupCloseReason)CheckMakeLastLocationCorrection(Rectangle, Point, Rectangle, Size)CheckMakeLastLocationCorrection(Rectangle, Point, Rectangle)ClosePopup(PopupCloseInfo)ClosePopup(RadPopupCloseReason)Dispose(bool)GetAvailableBoundsFromScreen(Screen)GetBackupSize()GetCorrectedHorizontalLocation(Screen, Rectangle, Point, Size)GetCorrectedHorizontalLocation(Screen, Rectangle, Point)GetCorrectedLocation(Rectangle)GetCorrectedLocation(Screen, Rectangle, Size)GetCorrectedLocation(Screen, Rectangle)GetCorrectedVerticalLocation(Screen, Rectangle, Point, Size)GetCorrectedVerticalLocation(Screen, Rectangle, Point)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