C# Class ZForge.Controls.ExplorerBar.Expando

Inheritance: System.Windows.Forms.Control, ISupportInitialize
ファイルを表示 Open project: zhuangyy/Motion Class Usage Examples

Private Properties

Property Type Description
CalcAnimationHeights void
CalcHeightAndLayout int
FireCustomSettingsChanged void
MatchControlCollToItemColl void
ShouldSerializeSize bool
UpdateItems void

Public Methods

Method Description
BeginInit ( ) : void

Signals the object that initialization is starting

BeginUpdate ( ) : void

Prevents the Expando from drawing until the EndUpdate method is called

Collapse ( ) : void

Collapses the group without any animation.

DoLayout ( ) : void

Forces the control to apply layout logic to child controls, and adjusts the height of the Expando if necessary

DoLayout ( bool performRealLayout ) : void

Forces the control to apply layout logic to child controls, and adjusts the height of the Expando if necessary

EndInit ( ) : void

Signals the object that initialization is complete

EndUpdate ( ) : void

Resumes drawing of the Expando after drawing is suspended by the BeginUpdate method

Expand ( ) : void

Expands the group without any animation.

Expando ( ) : System

Initializes a new instance of the Expando class with default settings

HideControl ( Control control ) : void

Hides the specified Control

ResetCustomSettings ( ) : void

Resets the custom settings to their default values

ShowControl ( Control control ) : void

Shows the specified Control

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Releases the unmanaged resources used by the Expando and optionally releases the managed resources

FindFocusedChild ( ) : Control

Gets the control contained in the Expando that currently has focus

GetCollapsedImage ( ) : Image

Gets the image to be used in the animation while the Expando is in its collapsed state

GetExpandedImage ( ) : Image

Gets the image to be used in the animation while the Expando is in its expanded state

GetFadeAnimationImage ( ) : Image

Returns an image of the group's display area to be used in the fade animation

InvalidateTitleBar ( ) : void

Invalidates the titlebar area

OnControlAdded ( System.Windows.Forms.ControlEventArgs e ) : void

Raises the ControlAdded event

OnControlRemoved ( System.Windows.Forms.ControlEventArgs e ) : void

Raises the ControlRemoved event

OnCustomSettingsChanged ( EventArgs e ) : void

Raises the CustomSettingsChanged event

OnGotFocus ( EventArgs e ) : void

Raises the GotFocus event

OnItemAdded ( System.Windows.Forms.ControlEventArgs e ) : void

Raises the ItemAdded event

OnItemRemoved ( System.Windows.Forms.ControlEventArgs e ) : void

Raises the ItemRemoved event

OnKeyUp ( KeyEventArgs e ) : void

Raises the KeyUp event

OnLocationChanged ( EventArgs e ) : void

Raises the LocationChanged event

OnLostFocus ( EventArgs e ) : void

Raises the LostFocus event

OnMouseDown ( MouseEventArgs e ) : void

Raises the MouseDown event

OnMouseLeave ( EventArgs e ) : void

Raises the MouseLeave event

OnMouseMove ( MouseEventArgs e ) : void

Raises the MouseMove event

OnMouseUp ( MouseEventArgs e ) : void

Raises the MouseUp event

OnPaint ( PaintEventArgs e ) : void

Raises the Paint event

OnPaintBackground ( PaintEventArgs e ) : void

Raises the PaintBackground event

OnPaintBorder ( Graphics g ) : void

Paints the borders

OnPaintDisplayRect ( Graphics g ) : void

Paints the "Display Rectangle". This is the dockable area of the control (ie non-titlebar/border area). This is also the same as the PseudoClientRect.

OnPaintTitleBar ( Graphics g ) : void

Paints the title bar

OnPaintTitleBarBackground ( Graphics g ) : void

Paints the title bar background

OnParentChanged ( EventArgs e ) : void

Raises the ParentChanged event

OnSizeChanged ( EventArgs e ) : void

Raises the SizeChanged event

OnSpecialGroupChanged ( ExpandoEventArgs e ) : void

Raises the SpecialGroupChanged event

OnStateChanged ( ExpandoEventArgs e ) : void

Raises the StateChanged event

OnTitleImageChanged ( ExpandoEventArgs e ) : void

Raises the TitleImageChanged event

OnWatermarkChanged ( ExpandoEventArgs e ) : void

Raises the WatermarkChanged event

PaintTransparentBackground ( Graphics g, Rectangle clipRect ) : void

Simulates a transparent background by getting the Expandos parent to paint its background and foreground into the specified Graphics at the specified location

ProcessArrowKey ( bool forward ) : bool

Selects the next available control and makes it the active control

ProcessDialogKey ( Keys keyData ) : bool

Processes a dialog key

ProcessTabKey ( bool forward ) : bool

Selects the next available control and makes it the active control

ScaleCore ( float dx, float dy ) : void

Performs the work of scaling the entire control and any child controls

StartFadeAnimation ( ) : void

Gets the Expando ready to start its collapse/expand animation

StartSlideAnimation ( ) : void

Gets the Expando ready to start its show/hide animation

StopFadeAnimation ( ) : void

Gets the Expando to stop its animation

StopSlideAnimation ( ) : void

Gets the Expando to stop its animation

UpdateFadeAnimation ( int animationStepNum, int numAnimationSteps ) : void

Updates the next "frame" of the animation

UpdateSlideAnimation ( int animationStepNum, int numAnimationSteps ) : void

Updates the next "frame" of a slide animation

Private Methods

Method Description
CalcAnimationHeights ( ) : void

Caches the heights that the Expando should be for each frame of a fade animation

CalcHeightAndLayout ( ) : int

Calculates the height that the Expando would be if a call to DoLayout() were made

FireCustomSettingsChanged ( EventArgs e ) : void

Raises the CustomSettingsChanged event

MatchControlCollToItemColl ( ) : void

Make sure the controls index in the ControlCollection are the same as in the ItemCollection (indexes in the ItemCollection may have changed due to the user moving them around in the editor or calling ItemCollection.Move())

ShouldSerializeSize ( ) : bool

Specifies whether the Size property should be serialized at design time

UpdateItems ( ) : void

Updates the layout of the Expandos items while in design mode, and adds/removes itemss from the ControlCollection as necessary

Method Details

BeginInit() public method

Signals the object that initialization is starting
public BeginInit ( ) : void
return void

BeginUpdate() public method

Prevents the Expando from drawing until the EndUpdate method is called
public BeginUpdate ( ) : void
return void

Collapse() public method

Collapses the group without any animation.
public Collapse ( ) : void
return void

Dispose() protected method

Releases the unmanaged resources used by the Expando and optionally releases the managed resources
protected Dispose ( bool disposing ) : void
disposing bool True to release both managed and unmanaged /// resources; false to release only unmanaged resources
return void

DoLayout() public method

Forces the control to apply layout logic to child controls, and adjusts the height of the Expando if necessary
public DoLayout ( ) : void
return void

DoLayout() public method

Forces the control to apply layout logic to child controls, and adjusts the height of the Expando if necessary
public DoLayout ( bool performRealLayout ) : void
performRealLayout bool
return void

EndInit() public method

Signals the object that initialization is complete
public EndInit ( ) : void
return void

EndUpdate() public method

Resumes drawing of the Expando after drawing is suspended by the BeginUpdate method
public EndUpdate ( ) : void
return void

Expand() public method

Expands the group without any animation.
public Expand ( ) : void
return void

Expando() public method

Initializes a new instance of the Expando class with default settings
public Expando ( ) : System
return System

FindFocusedChild() protected method

Gets the control contained in the Expando that currently has focus
protected FindFocusedChild ( ) : Control
return System.Windows.Forms.Control

GetCollapsedImage() protected method

Gets the image to be used in the animation while the Expando is in its collapsed state
protected GetCollapsedImage ( ) : Image
return Image

GetExpandedImage() protected method

Gets the image to be used in the animation while the Expando is in its expanded state
protected GetExpandedImage ( ) : Image
return Image

GetFadeAnimationImage() protected method

Returns an image of the group's display area to be used in the fade animation
protected GetFadeAnimationImage ( ) : Image
return Image

HideControl() public method

Hides the specified Control
public HideControl ( Control control ) : void
control System.Windows.Forms.Control The Control to hide
return void

InvalidateTitleBar() protected method

Invalidates the titlebar area
protected InvalidateTitleBar ( ) : void
return void

OnControlAdded() protected method

Raises the ControlAdded event
protected OnControlAdded ( System.Windows.Forms.ControlEventArgs e ) : void
e System.Windows.Forms.ControlEventArgs A ControlEventArgs that contains the event data
return void

OnControlRemoved() protected method

Raises the ControlRemoved event
protected OnControlRemoved ( System.Windows.Forms.ControlEventArgs e ) : void
e System.Windows.Forms.ControlEventArgs A ControlEventArgs that contains the event data
return void

OnCustomSettingsChanged() protected method

Raises the CustomSettingsChanged event
protected OnCustomSettingsChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data
return void

OnGotFocus() protected method

Raises the GotFocus event
protected OnGotFocus ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data
return void

OnItemAdded() protected method

Raises the ItemAdded event
protected OnItemAdded ( System.Windows.Forms.ControlEventArgs e ) : void
e System.Windows.Forms.ControlEventArgs A ControlEventArgs that contains the event data
return void

OnItemRemoved() protected method

Raises the ItemRemoved event
protected OnItemRemoved ( System.Windows.Forms.ControlEventArgs e ) : void
e System.Windows.Forms.ControlEventArgs A ControlEventArgs that contains the event data
return void

OnKeyUp() protected method

Raises the KeyUp event
protected OnKeyUp ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs A KeyEventArgs that contains the event data
return void

OnLocationChanged() protected method

Raises the LocationChanged event
protected OnLocationChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data
return void

OnLostFocus() protected method

Raises the LostFocus event
protected OnLostFocus ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data
return void

OnMouseDown() protected method

Raises the MouseDown event
protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs A MouseEventArgs that contains the event data
return void

OnMouseLeave() protected method

Raises the MouseLeave event
protected OnMouseLeave ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data
return void

OnMouseMove() protected method

Raises the MouseMove event
protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs A MouseEventArgs that contains the event data
return void

OnMouseUp() protected method

Raises the MouseUp event
protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs A MouseEventArgs that contains the event data
return void

OnPaint() protected method

Raises the Paint event
protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs A PaintEventArgs that contains the event data
return void

OnPaintBackground() protected method

Raises the PaintBackground event
protected OnPaintBackground ( PaintEventArgs e ) : void
e PaintEventArgs A PaintEventArgs that contains the event data
return void

OnPaintBorder() protected method

Paints the borders
protected OnPaintBorder ( Graphics g ) : void
g System.Drawing.Graphics The Graphics used to paint the border
return void

OnPaintDisplayRect() protected method

Paints the "Display Rectangle". This is the dockable area of the control (ie non-titlebar/border area). This is also the same as the PseudoClientRect.
protected OnPaintDisplayRect ( Graphics g ) : void
g System.Drawing.Graphics The Graphics used to paint the DisplayRectangle
return void

OnPaintTitleBar() protected method

Paints the title bar
protected OnPaintTitleBar ( Graphics g ) : void
g System.Drawing.Graphics The Graphics used to paint the titlebar
return void

OnPaintTitleBarBackground() protected method

Paints the title bar background
protected OnPaintTitleBarBackground ( Graphics g ) : void
g System.Drawing.Graphics The Graphics used to paint the titlebar
return void

OnParentChanged() protected method

Raises the ParentChanged event
protected OnParentChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data
return void

OnSizeChanged() protected method

Raises the SizeChanged event
protected OnSizeChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs that contains the event data
return void

OnSpecialGroupChanged() protected method

Raises the SpecialGroupChanged event
protected OnSpecialGroupChanged ( ExpandoEventArgs e ) : void
e ExpandoEventArgs An ExpandoEventArgs that contains the event data
return void

OnStateChanged() protected method

Raises the StateChanged event
protected OnStateChanged ( ExpandoEventArgs e ) : void
e ExpandoEventArgs An ExpandoStateChangedEventArgs that contains the event data
return void

OnTitleImageChanged() protected method

Raises the TitleImageChanged event
protected OnTitleImageChanged ( ExpandoEventArgs e ) : void
e ExpandoEventArgs An ExpandoEventArgs that contains the event data
return void

OnWatermarkChanged() protected method

Raises the WatermarkChanged event
protected OnWatermarkChanged ( ExpandoEventArgs e ) : void
e ExpandoEventArgs An ExpandoEventArgs that contains the event data
return void

PaintTransparentBackground() protected method

Simulates a transparent background by getting the Expandos parent to paint its background and foreground into the specified Graphics at the specified location
protected PaintTransparentBackground ( Graphics g, Rectangle clipRect ) : void
g System.Drawing.Graphics The Graphics used to paint the background
clipRect System.Drawing.Rectangle The Rectangle that represents the rectangle /// in which to paint
return void

ProcessArrowKey() protected method

Selects the next available control and makes it the active control
protected ProcessArrowKey ( bool forward ) : bool
forward bool true to cycle forward through the controls in /// the Expando; otherwise, false
return bool

ProcessDialogKey() protected method

Processes a dialog key
protected ProcessDialogKey ( Keys keyData ) : bool
keyData Keys One of the Keys values that represents /// the key to process
return bool

ProcessTabKey() protected method

Selects the next available control and makes it the active control
protected ProcessTabKey ( bool forward ) : bool
forward bool true to cycle forward through the controls in /// the Expando; otherwise, false
return bool

ResetCustomSettings() public method

Resets the custom settings to their default values
public ResetCustomSettings ( ) : void
return void

ScaleCore() protected method

Performs the work of scaling the entire control and any child controls
protected ScaleCore ( float dx, float dy ) : void
dx float The ratio by which to scale the control horizontally
dy float The ratio by which to scale the control vertically
return void

ShowControl() public method

Shows the specified Control
public ShowControl ( Control control ) : void
control System.Windows.Forms.Control The Control to show
return void

StartFadeAnimation() protected method

Gets the Expando ready to start its collapse/expand animation
protected StartFadeAnimation ( ) : void
return void

StartSlideAnimation() protected method

Gets the Expando ready to start its show/hide animation
protected StartSlideAnimation ( ) : void
return void

StopFadeAnimation() protected method

Gets the Expando to stop its animation
protected StopFadeAnimation ( ) : void
return void

StopSlideAnimation() protected method

Gets the Expando to stop its animation
protected StopSlideAnimation ( ) : void
return void

UpdateFadeAnimation() protected method

Updates the next "frame" of the animation
protected UpdateFadeAnimation ( int animationStepNum, int numAnimationSteps ) : void
animationStepNum int The current step in the animation
numAnimationSteps int The total number of steps in the animation
return void

UpdateSlideAnimation() protected method

Updates the next "frame" of a slide animation
protected UpdateSlideAnimation ( int animationStepNum, int numAnimationSteps ) : void
animationStepNum int The current step in the animation
numAnimationSteps int The total number of steps in the animation
return void