C# Class ZForge.Controls.ExplorerBar.Expando

Inheritance: System.Windows.Forms.Control, ISupportInitialize
Afficher le fichier Open project: zhuangyy/Motion Class Usage Examples

Private Properties

Свойство Type Description
CalcAnimationHeights void
CalcHeightAndLayout int
FireCustomSettingsChanged void
MatchControlCollToItemColl void
ShouldSerializeSize bool
UpdateItems void

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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

Méthode 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 méthode

Signals the object that initialization is starting
public BeginInit ( ) : void
Résultat void

BeginUpdate() public méthode

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

Collapse() public méthode

Collapses the group without any animation.
public Collapse ( ) : void
Résultat void

Dispose() protected méthode

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
Résultat void

DoLayout() public méthode

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

DoLayout() public méthode

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
Résultat void

EndInit() public méthode

Signals the object that initialization is complete
public EndInit ( ) : void
Résultat void

EndUpdate() public méthode

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

Expand() public méthode

Expands the group without any animation.
public Expand ( ) : void
Résultat void

Expando() public méthode

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

FindFocusedChild() protected méthode

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

GetCollapsedImage() protected méthode

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

GetExpandedImage() protected méthode

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

GetFadeAnimationImage() protected méthode

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

HideControl() public méthode

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

InvalidateTitleBar() protected méthode

Invalidates the titlebar area
protected InvalidateTitleBar ( ) : void
Résultat void

OnControlAdded() protected méthode

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

OnControlRemoved() protected méthode

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

OnCustomSettingsChanged() protected méthode

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

OnGotFocus() protected méthode

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

OnItemAdded() protected méthode

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

OnItemRemoved() protected méthode

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

OnKeyUp() protected méthode

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

OnLocationChanged() protected méthode

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

OnLostFocus() protected méthode

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

OnMouseDown() protected méthode

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

OnMouseLeave() protected méthode

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

OnMouseMove() protected méthode

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

OnMouseUp() protected méthode

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

OnPaint() protected méthode

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

OnPaintBackground() protected méthode

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

OnPaintBorder() protected méthode

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

OnPaintDisplayRect() protected méthode

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
Résultat void

OnPaintTitleBar() protected méthode

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

OnPaintTitleBarBackground() protected méthode

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

OnParentChanged() protected méthode

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

OnSizeChanged() protected méthode

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

OnSpecialGroupChanged() protected méthode

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

OnStateChanged() protected méthode

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

OnTitleImageChanged() protected méthode

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

OnWatermarkChanged() protected méthode

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

PaintTransparentBackground() protected méthode

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
Résultat void

ProcessArrowKey() protected méthode

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
Résultat bool

ProcessDialogKey() protected méthode

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

ProcessTabKey() protected méthode

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
Résultat bool

ResetCustomSettings() public méthode

Resets the custom settings to their default values
public ResetCustomSettings ( ) : void
Résultat void

ScaleCore() protected méthode

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
Résultat void

ShowControl() public méthode

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

StartFadeAnimation() protected méthode

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

StartSlideAnimation() protected méthode

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

StopFadeAnimation() protected méthode

Gets the Expando to stop its animation
protected StopFadeAnimation ( ) : void
Résultat void

StopSlideAnimation() protected méthode

Gets the Expando to stop its animation
protected StopSlideAnimation ( ) : void
Résultat void

UpdateFadeAnimation() protected méthode

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
Résultat void

UpdateSlideAnimation() protected méthode

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
Résultat void