C# 클래스 PowerArgs.Cli.ConsoleApp

A class representing a console application that uses a message pump to synchronize work on a UI thread
상속: CliMessagePump
파일 보기 프로젝트 열기: adamabdelhamed/PowerArgs 1 사용 예제들

공개 메소드들

메소드 설명
ConsoleApp ( ) : System

Creates a full screen console app that will automatically adjust its layout if the window size changes

ConsoleApp ( int x, int y, int w, int h ) : System

Creates a new console app given a set of boundaries

FromMvVm ( string markup, object viewModel ) : ConsoleApp

Creates a ConsoleApp from markup and a view model

Paint ( ) : void

Queues up a request to paint the app. The system will dedupe multiple paint requests when there are multiple in the pump's work queue

Start ( ) : Task

Starts the app, asynchronously.

보호된 메소드들

메소드 설명
HandleKeyInput ( ConsoleKeyInfo info ) : void

Handles key input for the application

비공개 메소드들

메소드 설명
ControlAddedToVisualTree ( ConsoleControl c ) : void
ControlRemovedFromVisualTree ( ConsoleControl c ) : void
ControlRemovedFromVisualTreeRecursive ( ConsoleControl c ) : bool
Event ( ) : System

메소드 상세

ConsoleApp() 공개 메소드

Creates a full screen console app that will automatically adjust its layout if the window size changes
public ConsoleApp ( ) : System
리턴 System

ConsoleApp() 공개 메소드

Creates a new console app given a set of boundaries
public ConsoleApp ( int x, int y, int w, int h ) : System
x int The left position on the target console to bound this app
y int The right position on the target console to bound this app
w int The width of the app
h int The height of the app
리턴 System

FromMvVm() 공개 정적인 메소드

Creates a ConsoleApp from markup and a view model
public static FromMvVm ( string markup, object viewModel ) : ConsoleApp
markup string The xml markup that defines the app's view
viewModel object The view model object that defines the code behind the view
리턴 ConsoleApp

HandleKeyInput() 보호된 메소드

Handles key input for the application
protected HandleKeyInput ( ConsoleKeyInfo info ) : void
info ConsoleKeyInfo The key that was pressed
리턴 void

Paint() 공개 메소드

Queues up a request to paint the app. The system will dedupe multiple paint requests when there are multiple in the pump's work queue
public Paint ( ) : void
리턴 void

Start() 공개 메소드

Starts the app, asynchronously.
public Start ( ) : Task
리턴 Task