C# Class P02Project.PoloroidControl

Interaction logic for PoloroidControl.xaml
Inheritance: System.Windows.Controls.UserControl, Animatiable
Afficher le fichier Open project: raouldc/OptiDev Class Usage Examples

Protected Properties

Свойство Type Description
dblAnimationIn System.Windows.Media.Animation.DoubleAnimation
dblAnimationOut System.Windows.Media.Animation.DoubleAnimation
sbIn System.Windows.Media.Animation.Storyboard
sbOut System.Windows.Media.Animation.Storyboard

Méthodes publiques

Méthode Description
AnimateIn ( ) : void
AnimateOut ( ) : void
PoloroidControl ( ) : System
PoloroidControl ( String resName, String caption, Color colour ) : System

Constructor

removeBorder ( ) : void
removeGlow ( ) : void
removeTouch ( ) : void
setCaption ( String caption ) : void

setter method for the polaroid text

setColour ( Color colour ) : void

setter method for the polaroid color

setGlow ( ) : void
setImage ( String resName ) : void

setter method for the polaroid image

setShadow ( double blur, double opacity, Color col ) : void

Private Methods

Méthode Description
Poloroid_MouseDown ( object sender, System.Windows.Input.MouseButtonEventArgs e ) : void

make the animation when mouse pressed

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

make the animation when lift up the mouse

Poloroid_TouchDown ( object sender, System.Windows.Input.TouchEventArgs e ) : void

make the animation when touched

Poloroid_TouchUp ( object sender, System.Windows.Input.TouchEventArgs e ) : void

make the animation when stop touching

ResetTimer ( ) : void
hideShadow ( ) : void

a helper method for animate the shadow when the polaroid is clicked or touched

showShadow ( ) : void

a helper method for animate the shadow when the polaroid is clicked or touched

Method Details

AnimateIn() public méthode

public AnimateIn ( ) : void
Résultat void

AnimateOut() public méthode

public AnimateOut ( ) : void
Résultat void

PoloroidControl() public méthode

public PoloroidControl ( ) : System
Résultat System

PoloroidControl() public méthode

Constructor
public PoloroidControl ( String resName, String caption, Color colour ) : System
resName String The name of the image in the resources folder
caption String The caption to go on the polaroid
colour Color The colour of the backgroud of the text
Résultat System

removeBorder() public méthode

public removeBorder ( ) : void
Résultat void

removeGlow() public méthode

public removeGlow ( ) : void
Résultat void

removeTouch() public méthode

public removeTouch ( ) : void
Résultat void

setCaption() public méthode

setter method for the polaroid text
public setCaption ( String caption ) : void
caption String
Résultat void

setColour() public méthode

setter method for the polaroid color
public setColour ( Color colour ) : void
colour Color
Résultat void

setGlow() public méthode

public setGlow ( ) : void
Résultat void

setImage() public méthode

setter method for the polaroid image
public setImage ( String resName ) : void
resName String
Résultat void

setShadow() public méthode

public setShadow ( double blur, double opacity, Color col ) : void
blur double
opacity double
col Color
Résultat void

Property Details

dblAnimationIn protected_oe property

protected DoubleAnimation,System.Windows.Media.Animation dblAnimationIn
Résultat System.Windows.Media.Animation.DoubleAnimation

dblAnimationOut protected_oe property

protected DoubleAnimation,System.Windows.Media.Animation dblAnimationOut
Résultat System.Windows.Media.Animation.DoubleAnimation

sbIn protected_oe property

protected Storyboard,System.Windows.Media.Animation sbIn
Résultat System.Windows.Media.Animation.Storyboard

sbOut protected_oe property

protected Storyboard,System.Windows.Media.Animation sbOut
Résultat System.Windows.Media.Animation.Storyboard