public Webcam()
{
InitializeComponent();
// Subscribe command bindings
CommandBindings.Add(new CommandBinding(CaptureImageCommands.CaptureImage,
CaptureImage_Executed, CaptureImage_CanExecute));
CommandBindings.Add(new CommandBinding(CaptureImageCommands.RemoveImage,
RemoveImage_Executed));
CommandBindings.Add(new CommandBinding(CaptureImageCommands.ClearAllImages,
ClearAllImages_Executed));
_tweetBtn.Background = new SolidColorBrush((Color) ColorConverter.ConvertFromString("#FF146290"));
DropShadowEffect dShdow = new DropShadowEffect();
dShdow.BlurRadius = 10;
dShdow.Opacity = 0.365;
_tweetBtn.Effect = dShdow;
// Create default device
SelectedWebcamMonikerString = (CapDevice.DeviceMonikers.Length > 0)
? CapDevice.DeviceMonikers[0].MonikerString
: "";
_sbIn = new Storyboard();
Util.FadeIn(_sbIn, _selectedImg);
Util.FadeIn(_sbIn, _tweetTxt);
Util.FadeIn(_sbIn, _imagesBox);
Util.FadeIn(_sbIn, webcamPlayer);
}