c# - Conflict between 2 Drag and Drops in WPF -


i have 2 drag , drops. 1 in mainwindow , second 1 on label. problem when drop file on label, first executes mainwindow_drop , label_drop because drop on form on label. how can manage when put file on label not execute mainwindow_drop in same time.

the reason there drag , drop on mainwindow because user should able drop file anywhere in form. , label, because there should option label.

set handled property true in handler label:

private void label_drop(object sender, drageventargs e) {     e.handled = true; } 

Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -