Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void ImagePanel_Drop(object sender, DragEventArgs e)
- {
- if (e.Data.GetDataPresent(DataFormats.FileDrop))
- {
- // можно же перетянуть много файлов, так что....
- string[] files = (string[])e.Data.GetData(DataFormats.FileDrop);
- // делаешь что-то
- }
- }
- <StackPanel Name="ImagePanel" Drop="ImagePanel_Drop" AllowDrop="true">
- ...
- </StackPanel>
- Drop="ImagePanel_Drop" AllowDrop="true"
Add Comment
Please, Sign In to add comment