Καλώς ορίσατε στο dotNETZone.gr - Σύνδεση | Εγγραφή | Βοήθεια
σε

 

Αρχική σελίδα Ιστολόγια Συζητήσεις Εκθέσεις Φωτογραφιών Αρχειοθήκες

Ένα περίεργο σφάλμα με Drag and Drop Files

Îåêßíçóå áðü ôï ìÝëïò Chrysostomos Kolovos. Τελευταία δημοσίευση από το μέλος Chrysostomos Kolovos στις 03-12-2012, 13:56. Υπάρχουν 2 απαντήσεις.
Ταξινόμηση Δημοσιεύσεων: Προηγούμενο Επόμενο
  •  03-12-2012, 13:40 71652

    Ένα περίεργο σφάλμα με Drag and Drop Files

    Έχω υλοποιήσει ένα Wpf Window στο οποίο έχω βάλει ένα ListBox. Στο ListBox έχω υλοποιήσει να γίνεται Drag and Drop από files(Drop Event, AllowDrop="True", κτλ). Το περίεργο είναι το εξής. Όταν έχω ανοιχτό το project μόνο του και κάνω run η εφαρμογή τρέχει κανονικά και μπορώ να κάνω drop Files. Όταν βάλω το project στο συνολικό solution και κάνω run την εφαρμογή τότε για κάποιο λόγο το drop απενεργοποιήστε και όταν πάω ένα file πάνω από το control μου έχει ένα απαγορευτικό σύμβολο. Αν πάω και την τρέξω μόνος πάλι μέσα απ τον build φάκελο, παίζει κανονικά. Κάποια περίεργη ρύθμιση δε βρήκα στο solution.

    Έχει κανείς καμία ιδέα / πρόταση?

    Ευχαριστώ


  •  03-12-2012, 13:50 71654 σε απάντηση της 71652

    Απ: Ένα περίεργο σφάλμα με Drag and Drop Files

    Update: Αν τρέξω το Visual Studio σαν Administrator τότε δεν παίζει, αν το τρέξω κανονικά τότε παίζει... 

    (Visual Studio 2012)


  •  03-12-2012, 13:56 71655 σε απάντηση της 71654

    Απ: Ένα περίεργο σφάλμα με Drag and Drop Files

    Παραθέτω κάτι σχετικό που βρήκα.

    "The problem is tied to how security permissions work. The ability to drag and drop from a normal applications to an elevated one would break the security model behind UAC. However, I'm unclear as to why a UAC prompt isn't shown, thus allowing for a temporary elevated operation (much like any linux user experiences every day). This is definitely something that Microsoft needs to work on. What troubles me is that this problem is already old. Vista behaved the same.

    There's 2 things you can do (one ugly, one annoying)

    • Ugly: Disable UAC. But you lose all the extra security it offers.
    • Annoying: Use another File manager and run it too as an Administrator

    Why another file manager? Because you can't actually elevate Windows Explorer. Despite seeing the option in the context menu of the Windows Explorer icon and a UAC prompt being displayed, the fact is Windows Explorer will not be elevated."



Προβολή Τροφοδοσίας RSS με μορφή XML
Με χρήση του Community Server (Commercial Edition), από την Telligent Systems