C# Class ComponentFactory.Krypton.Ribbon.ViewDrawRibbonGroupGallery

Draws a ribbon group gallery.
Inheritance: ComponentFactory.Krypton.Toolkit.ViewComposite, IRibbonViewGroupContainerView
Show file Open project: ComponentFactory/Krypton Class Usage Examples

Private Properties

Property Type Description
ActualVisible bool
CreateLargeButtonView void
OnContextClick void
OnGalleryPropertyChanged void
OnLargeButtonDropDown void
OnLayoutAction void
OnMouseEnterControl void
OnMouseLeaveControl void
UpdateEnabled void
UpdateParent void
UpdateVisible void

Public Methods

Method Description
GetFirstFocusItem ( ) : ViewBase

Gets the first focus item from the container.

GetGroupKeyTips ( KeyTipInfoList keyTipList ) : void

Gets the array of group level key tips.

GetLastFocusItem ( ) : ViewBase

Gets the last focus item from the item.

GetNextFocusItem ( ViewBase current, bool &matched ) : ViewBase

Gets the next focus item based on the current item as provided.

GetPossibleSizes ( ViewLayoutContext context ) : ItemSizeWidth[]

Gets an array of the allowed possible sizes of the container.

GetPreferredSize ( ViewLayoutContext context ) : Size

Discover the preferred size of the element.

GetPreviousFocusItem ( ViewBase current, bool &matched ) : ViewBase

Gets the previous focus item based on the current item as provided.

KeyTipSelect ( ) : void

Perform action expected when a key tip is used to select the item.

Layout ( ViewLayoutContext context ) : void

Perform a layout of the elements.

LostFocus ( Control c ) : void

Source control has lost the focus.

Render ( RenderContext context ) : void

Perform a render of the elements.

ResetSolutionSize ( ) : void

Reset the container back to its requested size.

SetSolutionSize ( ItemSizeWidth size ) : void

Update the group with the provided sizing solution.

ToString ( ) : string

Obtains the String representation of this instance.

ViewDrawRibbonGroupGallery ( KryptonRibbon ribbon, KryptonRibbonGroupGallery ribbonGallery, NeedPaintHandler needPaint ) : System

Initialize a new instance of the ViewDrawRibbonGroupGallery class.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Clean up any resources being used.

OnNeedPaint ( bool needLayout ) : void

Raises the NeedPaint event.

OnNeedPaint ( bool needLayout, Rectangle invalidRect ) : void

Raises the NeedPaint event.

Private Methods

Method Description
ActualVisible ( Control c ) : bool
CreateLargeButtonView ( ) : void
OnContextClick ( object sender, MouseEventArgs e ) : void
OnGalleryPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
OnLargeButtonDropDown ( object sender, EventArgs e ) : void
OnLayoutAction ( object sender, EventArgs e ) : void
OnMouseEnterControl ( object sender, EventArgs e ) : void
OnMouseLeaveControl ( object sender, EventArgs e ) : void
UpdateEnabled ( Control c ) : void
UpdateParent ( Control parentControl ) : void
UpdateVisible ( Control c ) : void

Method Details

Dispose() protected method

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool true if managed resources should be disposed; otherwise, false.
return void

GetFirstFocusItem() public method

Gets the first focus item from the container.
public GetFirstFocusItem ( ) : ViewBase
return ViewBase

GetGroupKeyTips() public method

Gets the array of group level key tips.
public GetGroupKeyTips ( KeyTipInfoList keyTipList ) : void
keyTipList KeyTipInfoList List to add new entries into.
return void

GetLastFocusItem() public method

Gets the last focus item from the item.
public GetLastFocusItem ( ) : ViewBase
return ViewBase

GetNextFocusItem() public method

Gets the next focus item based on the current item as provided.
public GetNextFocusItem ( ViewBase current, bool &matched ) : ViewBase
current ViewBase The view that is currently focused.
matched bool Has the current focus item been matched yet.
return ViewBase

GetPossibleSizes() public method

Gets an array of the allowed possible sizes of the container.
public GetPossibleSizes ( ViewLayoutContext context ) : ItemSizeWidth[]
context ViewLayoutContext Context used to calculate the sizes.
return ItemSizeWidth[]

GetPreferredSize() public method

Discover the preferred size of the element.
public GetPreferredSize ( ViewLayoutContext context ) : Size
context ViewLayoutContext Layout context.
return Size

GetPreviousFocusItem() public method

Gets the previous focus item based on the current item as provided.
public GetPreviousFocusItem ( ViewBase current, bool &matched ) : ViewBase
current ViewBase The view that is currently focused.
matched bool Has the current focus item been matched yet.
return ViewBase

KeyTipSelect() public method

Perform action expected when a key tip is used to select the item.
public KeyTipSelect ( ) : void
return void

Layout() public method

Perform a layout of the elements.
public Layout ( ViewLayoutContext context ) : void
context ViewLayoutContext Layout context.
return void

LostFocus() public method

Source control has lost the focus.
public LostFocus ( Control c ) : void
c Control Reference to the source control instance.
return void

OnNeedPaint() protected method

Raises the NeedPaint event.
protected OnNeedPaint ( bool needLayout ) : void
needLayout bool Does the palette change require a layout.
return void

OnNeedPaint() protected method

Raises the NeedPaint event.
protected OnNeedPaint ( bool needLayout, Rectangle invalidRect ) : void
needLayout bool Does the palette change require a layout.
invalidRect Rectangle Rectangle to invalidate.
return void

Render() public method

Perform a render of the elements.
public Render ( RenderContext context ) : void
context RenderContext Rendering context.
return void

ResetSolutionSize() public method

Reset the container back to its requested size.
public ResetSolutionSize ( ) : void
return void

SetSolutionSize() public method

Update the group with the provided sizing solution.
public SetSolutionSize ( ItemSizeWidth size ) : void
size ItemSizeWidth Value for the container.
return void

ToString() public method

Obtains the String representation of this instance.
public ToString ( ) : string
return string

ViewDrawRibbonGroupGallery() public method

Initialize a new instance of the ViewDrawRibbonGroupGallery class.
public ViewDrawRibbonGroupGallery ( KryptonRibbon ribbon, KryptonRibbonGroupGallery ribbonGallery, NeedPaintHandler needPaint ) : System
ribbon KryptonRibbon Reference to owning ribbon control.
ribbonGallery KryptonRibbonGroupGallery Reference to source gallery.
needPaint NeedPaintHandler Delegate for notifying paint requests.
return System