Click here to Skip to main content

Silverlight / WPF

    RSS: RSS Feed

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page  Show 
  Refresh
AnswerRe: Google annoucment Pinmembervivasaayi2:08 28 Sep '09  
GeneralRe: Google annoucment PinmemberIan Shlasko4:03 28 Sep '09  
QuestionNeed to access control in another page PinmemberCBenac19:26 25 Sep '09  
AnswerRe: Need to access control in another page PinmvpMark Salsbery7:44 28 Sep '09  
GeneralRe: Need to access control in another page PinmemberCBenac11:56 28 Sep '09  
GeneralRe: Need to access control in another page PinmvpMark Salsbery14:40 28 Sep '09  
QuestionWhy doesn't the AllowDrop property work with a TextBox? [modified] PinmemberfjparisIII6:18 25 Sep '09  
My previous question concerned dragging and dropping into a ListBox and the answer was in the Drop event I had to execute code like this:
Array a = (Array)e.Data.GetData(DataFormats.FileDrop);
The other part of this is that I have to set the AllowDrop property to true on the ListBox. All that works fine.
 
But then when we come to a TextBox, setting AllowDrop to True doesn't work. I drag text into the field and the cursor with the red slash through it persists when it enters the TextBox! I noticed the same thing months ago, but was busy with other things, so dropped the attempt to get dragging and dropping working into a TextBox. But when I got it working with a ListBox, I figured I now knew enough to get it working with a TextBox. No such luck! What am I missing?
 
Addendum: I just read that the WPF TextBox has drag and drop by default, and indeed dragging from one TextBox to another does work by default. But dragging and dropping from Windows Explorer to a WPF TextBox does not work whether or not AllowDrop is set to true, and that's precisely what I need. How can I get it?
 
modified on Friday, September 25, 2009 12:06 PM

AnswerRe: Why doesn't the AllowDrop property work with a TextBox? PinmvpPete O'Hanlon11:24 25 Sep '09  
GeneralRe: Why doesn't the AllowDrop property work with a TextBox? [modified] PinmemberfjparisIII5:48 26 Sep '09  
GeneralRe: Why doesn't the AllowDrop property work with a TextBox? PinmvpPete O'Hanlon0:34 28 Sep '09  
GeneralRe: Why doesn't the AllowDrop property work with a TextBox? PinmemberfjparisIII6:50 28 Sep '09  
GeneralRe: Why doesn't the AllowDrop property work with a TextBox? PinmvpPete O'Hanlon9:50 28 Sep '09  
GeneralRe: Why doesn't the AllowDrop property work with a TextBox? PinmemberfjparisIII17:41 28 Sep '09  
QuestionCan't update GUI with textbox Text Pinmembermarca29221:14 24 Sep '09  
QuestionNeed to accept drop from drag and drop operation from Windows Explorer PinmemberfjparisIII17:08 24 Sep '09  
AnswerRe: Need to accept drop from drag and drop operation from Windows Explorer PinmemberGideon Engelberth4:22 25 Sep '09  
GeneralRe: Need to accept drop from drag and drop operation from Windows Explorer PinmemberfjparisIII5:06 25 Sep '09  
QuestionFont difference between XP and Vista in wpf app Pinmemberausadmin14:47 24 Sep '09  
AnswerRe: Font difference between XP and Vista in wpf app PinmvpChristian Graus15:22 24 Sep '09  
QuestionCustom control PinmemberMikey_H10:11 23 Sep '09  
AnswerRe: Custom control PinmemberRichard MacCutchan13:27 23 Sep '09  
GeneralRe: Custom control PinmemberMikey_H4:19 25 Sep '09  
GeneralRe: Custom control PinmemberRichard MacCutchan8:55 25 Sep '09  
QuestionCant see columns in listview on designer PinmemberHaimbert5:36 23 Sep '09  
AnswerRe: Cant see columns in listview on designer PinmemberABitSmart15:25 23 Sep '09  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.5.120209.1 | Last Updated 10 Feb 2012
Copyright © CodeProject, 1999-2012
All Rights Reserved. Terms of Use
Layout: fixed | fluid