Drag and drop and one of the UI interaction every user loves to have. I gave it a whip in something I was playing with at home. There might be better ways to bring Drag N' Drop interaction in WPF application but I choose to use GongSolution for WPF Drag Drop One reason for using this library for drag and drop interaction is that the library supports MVVM way to do it and does not require much integration to get started. You can add Gong WPF DragDrop library from Nuget into your MVVM enabled WPF application. Add enable a UI element for drag - drop support add following properties to it: DragDrop.IsDropTarget="True" and DragDrop.DropHandler="{Binding}" Here is how my sample XAML file looks like after adding above mentioned properties. <Window x:Class="GongDragAndDropSample.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http: » Read more

 Jsinh        

Shout out: WPF programmer, someday you will be asked to work on a feature where you need to show live preview of a attached USB camera (webcam) and on click of button you need to capture a picture and save or display in some image control. Pretty simple right? Well actually not, ok partially. Fine its pretty simple. Let me walk you through it and save you some time. People who wants to jump right into the code refer / download attached sample at the end of this article. Best of luck !! How to preview webcam (camera) video and take snapshot with WPF using AForge and MVVM. Step: Create a new WPF project or use your ongoing / existing WPF project, whatever you fancy. Step: Add reference to AForge NuGet package that will do the "talking to the webcam" stuffs for us. AForge.Controls AForge.Video.DirectShow By adding this two packages » Read more

 Jsinh