Recently I needed to enable drag and drop in a WPF application. The idea was to allow users to drop a file on the application window and the application would automatically open that file. Sounds simple, right? All it should take is to set the AllowDrop property to true on the Grid: <Grid HorizontalAlignment=”Stretch” DockPanel.Dock=”Top” […]