C# Class ComponentFactory.Krypton.Navigator.ViewletHeaderGroup

Provides HeaderGroup functionality.
Datei anzeigen Open project: ComponentFactory/Krypton Class Usage Examples

Public Methods

Method Description
ButtonSpecFromView ( ViewBase element ) : ButtonSpec

Gets the ButtonSpec associated with the provided view element.

Construct ( ViewBase filler ) : ViewDrawDocker

Construct the view appropriate for this builder.

DesignerGetHitTest ( Point pt ) : bool

Is the provided over a part of the view that wants the mouse.

Destruct ( ) : void

Destruct and cleanup the view hierarchy of the header group.

GetContextShowPoint ( ) : Point

Gets the screen coorindates for showing a context action menu.

NextActionEnabled ( DirectionButtonAction action ) : DirectionButtonAction

Get the appropriate action for the header group next action.

PostCreate ( ) : void

Perform actions required after the create of hierarchy is completed

PreviousActionEnabled ( DirectionButtonAction action ) : DirectionButtonAction

Get the appropriate action for the header group previous action.

UpdateButtons ( ) : void

Recreate the buttons to reflect a change in selected page.

UpdateStatePalettes ( ) : void

Ensure the correct state palettes are being used.

ViewBuilderPropertyChanged ( PropertyChangedEventArgs e ) : void

Process the change in a property that might effect the viewlet.

ViewletHeaderGroup ( KryptonNavigator navigator, PaletteRedirect redirector, NeedPaintHandler needPaintDelegate ) : System

Initialize a new instance of the ViewletHeaderGroup class.

Protected Methods

Method Description
GetHeaderSecondaryVisible ( ) : bool

Gets the visible state of the secondary header.

GetPrimaryValues ( ) : IContentValues

Gets the source of the primary header values.

GetSecondaryValues ( ) : IContentValues

Gets the source of the secondary header values.

Private Methods

Method Description
CreateButtonSpecManager ( ) : void
CreateDragDrop ( ) : void
CreateHeaderGroupView ( ViewBase filler ) : void
OnDragEnd ( object sender, PointEventArgs e ) : void
OnDragMove ( object sender, PointEventArgs e ) : void
OnDragQuit ( object sender, EventArgs e ) : void
OnDragStart ( object sender, DragStartEventCancelArgs e ) : void
OnLeftDoubleClick ( object sender, EventArgs e ) : void
OnLeftMouseDown ( object sender, EventArgs e ) : void
OnRightMouseDown ( object sender, EventArgs e ) : void
SetEnabled ( bool enabled ) : void
SetHeaderPosition ( ViewDrawCanvas canvas, ViewDrawContent content, VisualOrientation position ) : void
SetHeaderStyle ( ViewDrawDocker drawDocker, PaletteTripleMetricRedirect palette, HeaderStyle style ) : void
SetPalettes ( PaletteHeaderGroup palette ) : void
UpdateHeaders ( ) : void

Method Details

ButtonSpecFromView() public method

Gets the ButtonSpec associated with the provided view element.
public ButtonSpecFromView ( ViewBase element ) : ButtonSpec
element ViewBase Element to search against.
return ComponentFactory.Krypton.Toolkit.ButtonSpec

Construct() public method

Construct the view appropriate for this builder.
public Construct ( ViewBase filler ) : ViewDrawDocker
filler ViewBase View element to fill in the header group.
return ComponentFactory.Krypton.Toolkit.ViewDrawDocker

DesignerGetHitTest() public method

Is the provided over a part of the view that wants the mouse.
public DesignerGetHitTest ( Point pt ) : bool
pt Point Mouse point.
return bool

Destruct() public method

Destruct and cleanup the view hierarchy of the header group.
public Destruct ( ) : void
return void

GetContextShowPoint() public method

Gets the screen coorindates for showing a context action menu.
public GetContextShowPoint ( ) : Point
return Point

GetHeaderSecondaryVisible() protected method

Gets the visible state of the secondary header.
protected GetHeaderSecondaryVisible ( ) : bool
return bool

GetPrimaryValues() protected method

Gets the source of the primary header values.
protected GetPrimaryValues ( ) : IContentValues
return IContentValues

GetSecondaryValues() protected method

Gets the source of the secondary header values.
protected GetSecondaryValues ( ) : IContentValues
return IContentValues

NextActionEnabled() public method

Get the appropriate action for the header group next action.
public NextActionEnabled ( DirectionButtonAction action ) : DirectionButtonAction
action DirectionButtonAction Requested action.
return DirectionButtonAction

PostCreate() public method

Perform actions required after the create of hierarchy is completed
public PostCreate ( ) : void
return void

PreviousActionEnabled() public method

Get the appropriate action for the header group previous action.
public PreviousActionEnabled ( DirectionButtonAction action ) : DirectionButtonAction
action DirectionButtonAction Requested action.
return DirectionButtonAction

UpdateButtons() public method

Recreate the buttons to reflect a change in selected page.
public UpdateButtons ( ) : void
return void

UpdateStatePalettes() public method

Ensure the correct state palettes are being used.
public UpdateStatePalettes ( ) : void
return void

ViewBuilderPropertyChanged() public method

Process the change in a property that might effect the viewlet.
public ViewBuilderPropertyChanged ( PropertyChangedEventArgs e ) : void
e System.ComponentModel.PropertyChangedEventArgs Property changed details.
return void

ViewletHeaderGroup() public method

Initialize a new instance of the ViewletHeaderGroup class.
public ViewletHeaderGroup ( KryptonNavigator navigator, PaletteRedirect redirector, NeedPaintHandler needPaintDelegate ) : System
navigator KryptonNavigator Reference to navigator instance.
redirector ComponentFactory.Krypton.Toolkit.PaletteRedirect Palette redirector.
needPaintDelegate NeedPaintHandler Delegate for notifying paint requests.
return System