C# Class P02Project.Webcam

Interaction logic for Webcam.xaml
Inheritance: System.Windows.Controls.UserControl, Animatiable
Show file Open project: raouldc/OptiDev Class Usage Examples

Public Properties

Property Type Description
SelectedImagesProperty System.Windows.DependencyProperty
SelectedWebcamMonikerStringProperty System.Windows.DependencyProperty
SelectedWebcamProperty System.Windows.DependencyProperty
WebcamRotationProperty DependencyProperty

Public Methods

Method Description
AnimateIn ( ) : void
AnimateOut ( ) : void
Webcam ( ) : System

Private Methods

Method Description
CaptureImage_CanExecute ( object sender, System.Windows.Input.CanExecuteRoutedEventArgs e ) : void

Determines whether the CaptureImage command can be executed

CaptureImage_Executed ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void

Invoked when the CaptureImage command is executed

ClearAllImages_Executed ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void

Invoked when the ClearAllImages command is executed

RemoveImage_Executed ( object sender, System.Windows.Input.ExecutedRoutedEventArgs e ) : void

Invoked when the RemoveImage command is executed

ResetTimer ( ) : void
SelectedWebcamMonikerString_Changed ( DependencyObject sender, System.Windows.DependencyPropertyChangedEventArgs e ) : void

Invoked when the SelectedWebcamMonikerString dependency property has changed

selectedImageClicked ( Object sender, RoutedEventArgs e ) : void

invoked when an image in the select pool has been clicked

tweetBtnClicked ( object sender, RoutedEventArgs e ) : void

Invoked when "Tweet" button has been clicked

tweetTxtFocused ( object sender, RoutedEventArgs e ) : void

Invoked when tweeting textbox has been touched.

tweetTxtKeyUp ( object sender, MouseButtonEventArgs e ) : void
tweetTxt_KeyDown ( object sender, KeyEventArgs e ) : void
writeThisImageTo ( BitmapSource bitmap, String filename ) : void

A helper method that write a given image to a given filename

Method Details

AnimateIn() public method

public AnimateIn ( ) : void
return void

AnimateOut() public method

public AnimateOut ( ) : void
return void

Webcam() public method

public Webcam ( ) : System
return System

Property Details

SelectedImagesProperty public static property

public static DependencyProperty,System.Windows SelectedImagesProperty
return System.Windows.DependencyProperty

SelectedWebcamMonikerStringProperty public static property

public static DependencyProperty,System.Windows SelectedWebcamMonikerStringProperty
return System.Windows.DependencyProperty

SelectedWebcamProperty public static property

public static DependencyProperty,System.Windows SelectedWebcamProperty
return System.Windows.DependencyProperty

WebcamRotationProperty public static property

public static DependencyProperty WebcamRotationProperty
return DependencyProperty