C# Class P02Project.RightButton

This class is the UserControl for the buttons on the Right The buttons can have a custom colour and caption
Inheritance: System.Windows.Controls.UserControl
Mostra file Open project: raouldc/OptiDev Class Usage Examples

Public Methods

Method Description
RightButton ( ) : System.Windows.Controls

constructor

Private Methods

Method Description
Background_MouseDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void

When the mouse is down, the shadow of the button is hidden to make it look like the button is moving down

Background_MouseUp ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void

When the mouse if up, the shadow of the button is made visible to make the button look like it's moving up

hideShadow ( ) : void

Sets the opacity of the shadow to 0% Makes the shadow invisible

showShadow ( ) : void

Sets the opacity of the shadow to 100% Makes the shadow visible

Method Details

RightButton() public method

constructor
public RightButton ( ) : System.Windows.Controls
return System.Windows.Controls