C# Class P02Project.PoloroidControl

Interaction logic for PoloroidControl.xaml
Inheritance: System.Windows.Controls.UserControl, Animatiable
ファイルを表示 Open project: raouldc/OptiDev Class Usage Examples

Protected Properties

Property 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

Public Methods

Method 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

Method 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 method

public AnimateIn ( ) : void
return void

AnimateOut() public method

public AnimateOut ( ) : void
return void

PoloroidControl() public method

public PoloroidControl ( ) : System
return System

PoloroidControl() public method

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
return System

removeBorder() public method

public removeBorder ( ) : void
return void

removeGlow() public method

public removeGlow ( ) : void
return void

removeTouch() public method

public removeTouch ( ) : void
return void

setCaption() public method

setter method for the polaroid text
public setCaption ( String caption ) : void
caption String
return void

setColour() public method

setter method for the polaroid color
public setColour ( Color colour ) : void
colour Color
return void

setGlow() public method

public setGlow ( ) : void
return void

setImage() public method

setter method for the polaroid image
public setImage ( String resName ) : void
resName String
return void

setShadow() public method

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

Property Details

dblAnimationIn protected_oe property

protected DoubleAnimation,System.Windows.Media.Animation dblAnimationIn
return System.Windows.Media.Animation.DoubleAnimation

dblAnimationOut protected_oe property

protected DoubleAnimation,System.Windows.Media.Animation dblAnimationOut
return System.Windows.Media.Animation.DoubleAnimation

sbIn protected_oe property

protected Storyboard,System.Windows.Media.Animation sbIn
return System.Windows.Media.Animation.Storyboard

sbOut protected_oe property

protected Storyboard,System.Windows.Media.Animation sbOut
return System.Windows.Media.Animation.Storyboard