C# Class PowerArgs.Cli.Button

Inheritance: ConsoleControl
Show file Open project: adamabdelhamed/PowerArgs Class Usage Examples

Private Properties

Property Type Description
Click void
Event System
OnKeyInputReceived void
RegisterShortcutIfPossibleAndNotAlreadyDone void
UpdateWidth void

Public Methods

Method Description
Button ( ) : System

Creates a new button control

OnAddedToVisualTree ( ) : void

Called when the button is added to an app

Protected Methods

Method Description
OnPaint ( ConsoleBitmap context ) : void

paints the button

Private Methods

Method Description
Click ( ) : void
Event ( ) : System
OnKeyInputReceived ( ConsoleKeyInfo info ) : void
RegisterShortcutIfPossibleAndNotAlreadyDone ( ) : void
UpdateWidth ( ) : void

Method Details

Button() public method

Creates a new button control
public Button ( ) : System
return System

OnAddedToVisualTree() public method

Called when the button is added to an app
public OnAddedToVisualTree ( ) : void
return void

OnPaint() protected method

paints the button
protected OnPaint ( ConsoleBitmap context ) : void
context ConsoleBitmap drawing context
return void