A base class for all of the items contained in CommandBarStripElement.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class RadCommandBarBaseItem : RadCommandBarVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementRadCommandBarVisualElementRadCommandBarBaseItem...
Derived Classes:
Implements:
Inherited Members
Constructors
public RadCommandBarBaseItem()
Fields
Identifies the bubbling event raised when a command-bar item is clicked.
public static RoutedEvent ClickEvent
Identifies the bubbling event raised after an item's VisibleInStrip value changes.
public static RoutedEvent VisibleInStripChangedEvent
Identifies the cancellable bubbling event raised before an item's VisibleInStrip value changes.
public static RoutedEvent VisibleInStripChangingEvent
Identifies the dependency property that tracks whether the item participates in strip display and layout.
public static RadProperty VisibleInStripProperty
Properties
Gets or sets that the orientation will be inherit from parent
[Browsable(true)]
public virtual bool InheritsParentOrientation { get; set; }
Gets or sets the item's minimum size; changes made while the item is hidden are retained and applied when it becomes visible.
public override Size MinSize { get; set; }
Overrides:
Gets or sets the Orientation of the item.
[Browsable(true)]
public override Orientation Orientation { get; set; }
Overrides:
Prevents painting a hidden item outside the designer while preserving the base paint setting in other cases.
public override bool ShouldPaint { get; set; }
Overrides:
Show or hide item from the strip overflow menu
[Browsable(true)]
public bool VisibleInOverflowMenu { get; set; }
Show or hide item from the strip
[Browsable(true)]
public virtual bool VisibleInStrip { get; set; }
Methods
Sets the item's default alignment and stretch behavior, then caches its initial minimum size.
protected override void CreateChildElements()
Overrides:
Initializes the item with double-click detection disabled until a handler is added.
protected override void InitializeFields()
Overrides:
Measures the item as empty when it is hidden outside the designer; otherwise, uses the base measurement.
Raises the base click notification and bubbles ClickEvent for left-button or non-mouse clicks. Mouse clicks from other buttons are ignored.
protected override void OnClick(EventArgs e)
The mouse or other click event data.
Overrides:
Clears the pressed state when the pointer leaves the item.
Raises the event.
Raises the event.
protected virtual bool OnOrientationChanging(CancelEventArgs e)
Event data.
Returns:true if the event should be canceled, false otherwise.
Raises the event and bubbles VisibleInStripChangedEvent.
Events
Occurs when the element is double-clicked; adding a handler enables double-click detection.
[Browsable(true)]
public override event EventHandler DoubleClick
Overrides:
Occurs when the orientation is changed
public event EventHandler OrientationChanged
Occurs before the orientation is changed
public event CancelEventHandler OrientationChanging
Occurs when the property is changed.
public event EventHandler VisibleInStripChanged