RibbonBarPopup
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
Creates an instance of the RibbonBarPopup class.
Properties
Gets a boolean value indicating whether the ribbon popup is shown.
public bool IsPopupShown { get; }
Gets or sets the class name string that ThemeResolutionService will use to find the themes registered for the control.
public override string ThemeClassName { get; set; }
Overrides:
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
This method determines whether the IPopupControl can be closed. Used in the PopupManager class to prevent the IPopupControl from closing in specific occasions.
public override bool CanClosePopup(RadPopupCloseReason reason)
The reason why the IPopupControl is closed.
Returns:True if the IPopupControl can be closed, otherwise false.
Overrides:
Closes the IPopupControl.
public override void ClosePopup(RadPopupCloseReason reason)
The reason why the IPopupControl is closed.
Overrides:
Checks whether the element's theme is defined by the control.
public override bool ControlDefinesThemeForElement(RadElement element)
The element to should be checked.
Returns:true if the control defines theme for this element, false otherwise.
Overrides:
If true is returned the ThemeResolutionService would not not set any theme to the element to avoid duplicating the style settings of the element.
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.
protected override Point GetCorrectedLocation(Screen currentScreen, Rectangle alignmentRectangle)
An instance of the Screen class that represents the screen where the popup is about to be positioned.
alignmentRectangleRectangleThe 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:
Close the popup upon mouse click unless the user has clicked on a RadElement that opens another popup.
protected override void OnScreenTipNeeded(object sender, ScreenTipNeededEventArgs e)
Overrides:
protected override void OnToolTipTextNeeded(object sender, ToolTipTextNeededEventArgs e)
Overrides:
Processes a focus request from the specified element.
protected override bool ProcessFocusRequested(RadElement element)
The element that requested the focus.
Returns:True if focus is approved, false otherwise.
Overrides:
Shows the popup.
public override void ShowPopup(Rectangle alignmentRectangle)
The alignment rectangle.
Overrides: