This renderer is used to draw toolbar with chevron.
Inheritance
System.Object
XpToolBarChevronRenderer
Implements
System.IDisposable
System.Windows.Forms.IMessageFilter
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: Syncfusion.Tools.Windows.dll
public class XpToolBarChevronRenderer : SingleLineBarRenderer, IBarRenderer, IPopupChild, INeedKeyboardMessages, INeedMouseMoveMessages, IDndTrackingControl, IMouseHookHLProcClient, IKeyboardProcHookClient, IDisposable, IMessageFilter, IPopupParent, IPopupItem
Constructors
Creates a new instance of this class.
Declaration
public XpToolBarChevronRenderer(XPToolBar toolBar)
Parameters
Properties
Declaration
protected Rectangle ChevronButtonBounds { get; }
Property Value
Type |
System.Drawing.Rectangle |
Returns the menu, hidden items are shown in, when chevron is pressed.
Declaration
protected PopupMenu HiddenItemsMenu { get; }
Property Value
Declaration
protected bool IsRightToLeft { get; }
Property Value
Declaration
protected virtual bool ShouldDrawThemed { get; }
Property Value
Declaration
protected bool ShouldShowChevron { get; }
Property Value
Methods
Declaration
public override void AfterComputeBarItemPositions(IGraphicsProvider gp)
Parameters
Overrides
Declaration
public override void ChildClosing(IPopupChild childUI, PopupCloseType popupCloseType)
Parameters
Overrides
Declaration
protected override RectangleF CorrectDisplayBounds(RectangleF bounds)
Parameters
Type |
Name |
Description |
System.Drawing.RectangleF |
bounds |
|
Returns
Type |
System.Drawing.RectangleF |
Overrides
Declaration
protected override CustomizingPopupMenu CreateCustomizationPopup()
Returns
Overrides
Declaration
public override Point[] GetBorderOverlapCue(PopupRelativeAlignment relativeAlignment)
Parameters
Returns
Type |
System.Drawing.Point[] |
Overrides
Declaration
protected virtual PopupRelativeAlignment GetFirstAlignPreference()
Returns
Declaration
public override Point GetLocationForPopupAlignment(PopupRelativeAlignment prevAlignment, out PopupRelativeAlignment newAlignment)
Parameters
Returns
Type |
System.Drawing.Point |
Overrides
Declaration
public override Control GetPopupParentControl()
Returns
Type |
System.Windows.Forms.Control |
Overrides
Declaration
public override void GetPreferredSize(IGraphicsProvider gp, ref SizeF preferredSize)
Parameters
Overrides
Declaration
protected void InvalidateChevron()
Declaration
public override bool IsRelatedControl(Control control, bool askPopupParent)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Control |
control |
|
System.Boolean |
askPopupParent |
|
Returns
Overrides
Declaration
protected virtual void OnChevronMouseDown(MouseEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
e |
|
Declaration
public override bool OnMouseDown(MouseEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
e |
|
Returns
Overrides
Declaration
public override void OnMouseLeave(EventArgs e)
Parameters
Type |
Name |
Description |
System.EventArgs |
e |
|
Overrides
Declaration
public override void OnMouseMove(MouseEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
e |
|
Overrides
Declaration
public override void OnMouseUp(MouseEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
e |
|
Overrides
Declaration
public override void OnPaint(Graphics g, Rectangle clipRect)
Parameters
Type |
Name |
Description |
System.Drawing.Graphics |
g |
|
System.Drawing.Rectangle |
clipRect |
|
Overrides
Converts the point in screen coordinates to client coordinates.
Declaration
public Point PointToClient(Point pt)
Parameters
Type |
Name |
Description |
System.Drawing.Point |
pt |
The point to convert.
|
Returns
Type |
Description |
System.Drawing.Point |
Point in client coordinates.
|
Declaration
protected override bool ProcessKeyDown(Keys key)
Parameters
Type |
Name |
Description |
System.Windows.Forms.Keys |
key |
|
Returns
Overrides
Declaration
protected void RaiseChevronMouseDown(MouseEventArgs e)
Parameters
Type |
Name |
Description |
System.Windows.Forms.MouseEventArgs |
e |
|
Shows menu with hidden items.
Declaration
protected void ShowDropDown()
Events
Occurs when chevron button is pushed.
Declaration
public event MouseEventHandler ChevronMouseDown
Event Type
Type |
System.Windows.Forms.MouseEventHandler |
Implements
System.IDisposable
System.Windows.Forms.IMessageFilter