C# Class ComponentFactory.Krypton.Toolkit.KryptonContextMenuItemBase

Base class that all menu types must derive from and implement.
Inheritance: System.ComponentModel.Component, INotifyPropertyChanged
Mostra file Open project: Cocotteseb/Krypton Class Usage Examples

Private Properties

Property Type Description
this KryptonContextMenuItemBase

Public Methods

Method Description
GenerateView ( IContextMenuProvider provider, object parent, ViewLayoutStack columns, bool standardStyle, bool imageColumn ) : ViewBase

Returns a view appropriate for this item based on the object it is inside.

KryptonContextMenuItemBase ( ) : System

Initialize a new instance of the KryptonContextMenuItem class.

ProcessShortcut ( Keys keyData ) : bool

Test for the provided shortcut and perform relevant action if a match is found.

Protected Methods

Method Description
OnPropertyChanged ( PropertyChangedEventArgs e ) : void

Raises the PropertyChanged event.

Private Methods

Method Description
this ( int index ) : KryptonContextMenuItemBase

Method Details

GenerateView() public abstract method

Returns a view appropriate for this item based on the object it is inside.
public abstract GenerateView ( IContextMenuProvider provider, object parent, ViewLayoutStack columns, bool standardStyle, bool imageColumn ) : ViewBase
provider IContextMenuProvider Provider of context menu information.
parent object Owning object reference.
columns ViewLayoutStack Containing columns.
standardStyle bool Draw items with standard or alternate style.
imageColumn bool Draw an image background for the item images.
return ViewBase

KryptonContextMenuItemBase() public method

Initialize a new instance of the KryptonContextMenuItem class.
public KryptonContextMenuItemBase ( ) : System
return System

OnPropertyChanged() protected method

Raises the PropertyChanged event.
protected OnPropertyChanged ( PropertyChangedEventArgs e ) : void
e System.ComponentModel.PropertyChangedEventArgs A PropertyChangedEventArgs containing the event data.
return void

ProcessShortcut() public abstract method

Test for the provided shortcut and perform relevant action if a match is found.
public abstract ProcessShortcut ( Keys keyData ) : bool
keyData Keys Key data to check against shorcut definitions.
return bool