C# Class MissionPlanner.Controls.BackstageView.BackstageView

A Control to somewhat emulate the 'backstage view' as in MS Office 2010
'Tabs' are added as a control in a BackstageViewPage
Inheritance: System.Windows.Forms.UserControl, IContainerControl
Mostra file Open project: ArduPilot/MissionPlanner Class Usage Examples

Private Properties

Property Type Description
BackstageView_Load void
ButtonClick void
CreateLinkButton void
PageHasChildren bool
UpdateButtonAppearance void
lnkButton_DoubleClick void
popoutForm_FormClosing void

Public Methods

Method Description
ActivatePage ( BackstageViewPage associatedPage ) : void
AddPage ( Type userControl, string headerText, BackstageViewPage Parent, bool advanced ) : BackstageViewPage

Add a page (tab) to this backstage view. Will be added at the end/bottom

AddSpacer ( int spacerheight ) : void

Add a spacer to this backstage view. Will be added at the end/bottom

BackstageView ( ) : System
Close ( ) : void
DrawMenu ( BackstageViewPage CurrentPage, bool force = false ) : void
UpdateDisplay ( ) : void

Protected Methods

Method Description
OnPaint ( PaintEventArgs e ) : void

Private Methods

Method Description
BackstageView_Load ( object sender, EventArgs e ) : void
ButtonClick ( object sender, EventArgs e ) : void
CreateLinkButton ( BackstageViewPage page, bool haschild = false, bool child = false ) : void
PageHasChildren ( BackstageViewPage parent ) : bool
UpdateButtonAppearance ( ) : void
lnkButton_DoubleClick ( object sender, EventArgs e ) : void
popoutForm_FormClosing ( object sender, FormClosingEventArgs e ) : void

Method Details

ActivatePage() public method

public ActivatePage ( BackstageViewPage associatedPage ) : void
associatedPage BackstageViewPage
return void

AddPage() public method

Add a page (tab) to this backstage view. Will be added at the end/bottom
public AddPage ( Type userControl, string headerText, BackstageViewPage Parent, bool advanced ) : BackstageViewPage
userControl System.Type
headerText string
Parent BackstageViewPage
advanced bool
return BackstageViewPage

AddSpacer() public method

Add a spacer to this backstage view. Will be added at the end/bottom
public AddSpacer ( int spacerheight ) : void
spacerheight int the amount to space by
return void

BackstageView() public method

public BackstageView ( ) : System
return System

Close() public method

public Close ( ) : void
return void

DrawMenu() public method

public DrawMenu ( BackstageViewPage CurrentPage, bool force = false ) : void
CurrentPage BackstageViewPage
force bool
return void

OnPaint() protected method

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
return void

UpdateDisplay() public method

public UpdateDisplay ( ) : void
return void