ClassRibbonBarPopup
This class represents the popup which is displayed when a collapsed tab is selected in the RadRibbonBar control.
Definition
Namespace:Telerik.WinControls.UI.RibbonBar
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RibbonBarPopup : RadPopupControlBase, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider, IPopupControl
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadPopupControlBaseRibbonBarPopup
Implements:
Inherited Members
Constructors
RibbonBarPopup(RadRibbonBarElement)
Creates an instance of the RibbonBarPopup class.
Declaration
public RibbonBarPopup(RadRibbonBarElement ownerRibbon)
Parameters
ownerRibbon
Properties
IsPopupShown
Gets a boolean value indicating whether the ribbon popup is shown.
ThemeClassName
Gets or sets the class name string that ThemeResolutionService will use to find the themes registered for the control.
Declaration
public override string ThemeClassName { get; set; }
Property Value
Overrides
Remarks
By default the return value is RadControl's type FullName; Some controls like drop down menu has different ThemeClassName depending on the runtime usage of the control.
Methods
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
public override bool CanClosePopup(RadPopupCloseReason reason)
Parameters
reason
The reason why the IPopupControl is closed.
Returns
True if the IPopupControl can be closed, otherwise false.
Overrides
ClosePopup(RadPopupCloseReason)
Closes the IPopupControl.
Declaration
public override void ClosePopup(RadPopupCloseReason reason)
Parameters
reason
Overrides
ControlDefinesThemeForElement(RadElement)
Checks whether the element's theme is defined by the control.
Declaration
public override bool ControlDefinesThemeForElement(RadElement element)
Parameters
element
The element to should be checked.
Returns
true if the control defines theme for this element, false otherwise.
Overrides
Remarks
If true is returned the ThemeResolutionService would not not set any theme to the element to avoid duplicating the style settings of the element.
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
protected override Point GetCorrectedLocation(Screen currentScreen, Rectangle alignmentRectangle)
Parameters
currentScreen
An instance of the Screen class that represents the screen where the popup is about to be positioned.
alignmentRectangle
The alignment rectangle based on which the popup is aligned.
Returns
An instance of the Point struct that represents the calculated position of the popup.
Overrides
OnClick(EventArgs)
Close the popup upon mouse click unless the user has clicked on a RadElement that opens another popup.
Declaration
protected override void OnClick(EventArgs e)
Parameters
e
Overrides
OnScreenTipNeeded(object, ScreenTipNeededEventArgs)
Declaration
protected override void OnScreenTipNeeded(object sender, ScreenTipNeededEventArgs e)
Parameters
sender
e
Overrides
OnSizeChanged(EventArgs)
Declaration
protected override void OnSizeChanged(EventArgs e)
Parameters
e
Overrides
OnToolTipTextNeeded(object, ToolTipTextNeededEventArgs)
Declaration
protected override void OnToolTipTextNeeded(object sender, ToolTipTextNeededEventArgs e)
Parameters
sender
e
Overrides
ProcessFocusRequested(RadElement)
Processes a focus request from the specified element.
Declaration
protected override bool ProcessFocusRequested(RadElement element)
Parameters
element
The element that requested the focus.
Returns
True if focus is approved, false otherwise.
Overrides
ShowPopup(Rectangle)
Shows the popup.
Declaration
public override void ShowPopup(Rectangle alignmentRectangle)
Parameters
alignmentRectangle
The alignment rectangle.
Overrides