Click here to Skip to main content
15,903,201 members
Home / Discussions / WPF
   

WPF

 
AnswerRe: MVVM Recommendations Pin
_Maxxx_14-Nov-11 17:55
professional_Maxxx_14-Nov-11 17:55 
GeneralRe: MVVM Recommendations Pin
Tom Delany20-Nov-11 11:27
Tom Delany20-Nov-11 11:27 
GeneralRe: MVVM Recommendations Pin
_Maxxx_20-Nov-11 13:15
professional_Maxxx_20-Nov-11 13:15 
QuestionButton with popup submenu - like the one in toolbars Pin
Member 10339078-Nov-11 5:29
Member 10339078-Nov-11 5:29 
AnswerRe: Button with popup submenu - like the one in toolbars Pin
SledgeHammer018-Nov-11 6:45
SledgeHammer018-Nov-11 6:45 
GeneralRe: Button with popup submenu - like the one in toolbars Pin
Member 10339079-Nov-11 9:07
Member 10339079-Nov-11 9:07 
QuestionMAF Pin
columbos149278-Nov-11 4:16
columbos149278-Nov-11 4:16 
QuestionWPF Drag Drop - handling DragEnter and DragOver to disallow drop impossible? Pin
Member 10339078-Nov-11 0:51
Member 10339078-Nov-11 0:51 
I have the basic drag and drop functionality up and running. Now I want to handle DragEnter and/or DragOver on the drop target and in the event handler decide whether or not the drop is allowed. I thought I would do this by setting DragEventArgs.Effects property to None when the drop is not permitted but this has absolutelly no effect - mouse cursor still looks like everything is ok and indeed Drop event is fired when you drop the item. I remember that this was the way to go in windows forms, how can I conditionally diallow dropping (other that AllowDrop=false of course) in WPF?

Edited to add:
Straight from MSDN: The drop target is also able to specify what effects it intends in response to the dropped data. For example, if the drop target does not recognize the data type to be dropped, it can refuse the data by setting its allowed effects to None. It typically does this in its DragOver event handler.

So where is the problem? I am handling DropOver, settings Effects to None and yet the drop is allowed.
AnswerRe: WPF Drag Drop - handling DragEnter and DragOver to disallow drop impossible? Pin
Mark Salsbery8-Nov-11 5:13
Mark Salsbery8-Nov-11 5:13 
GeneralRe: WPF Drag Drop - handling DragEnter and DragOver to disallow drop impossible? Pin
Member 10339078-Nov-11 5:25
Member 10339078-Nov-11 5:25 
Questionuser control within the ContentControl is center aligned Pin
indian1437-Nov-11 19:57
indian1437-Nov-11 19:57 
AnswerRe: user control within the ContentControl is center aligned Pin
Mark Salsbery8-Nov-11 5:17
Mark Salsbery8-Nov-11 5:17 
GeneralRe: user control within the ContentControl is center aligned Pin
indian1438-Nov-11 6:37
indian1438-Nov-11 6:37 
QuestionCreating a c++ cli mixed mode assembly inherited from a WPF library not possible? Pin
alleyes7-Nov-11 10:26
professionalalleyes7-Nov-11 10:26 
QuestionMdiChild Pin
columbos149276-Nov-11 22:42
columbos149276-Nov-11 22:42 
QuestionRe: MdiChild Pin
Mark Salsbery7-Nov-11 9:59
Mark Salsbery7-Nov-11 9:59 
AnswerRe: MdiChild Pin
columbos149277-Nov-11 19:33
columbos149277-Nov-11 19:33 
GeneralRe: MdiChild Pin
Mark Salsbery8-Nov-11 5:19
Mark Salsbery8-Nov-11 5:19 
GeneralRe: MdiChild Pin
Pete O'Hanlon8-Nov-11 6:01
mvePete O'Hanlon8-Nov-11 6:01 
QuestionHow to add a link to textblock inside an ItemsControl? Pin
rams26-Nov-11 7:21
rams26-Nov-11 7:21 
AnswerRe: How to add a link to textblock inside an ItemsControl? Pin
Mark Salsbery6-Nov-11 8:18
Mark Salsbery6-Nov-11 8:18 
GeneralRe: How to add a link to textblock inside an ItemsControl? Pin
rams26-Nov-11 18:13
rams26-Nov-11 18:13 
GeneralRe: How to add a link to textblock inside an ItemsControl? Pin
SledgeHammer017-Nov-11 6:59
SledgeHammer017-Nov-11 6:59 
QuestionActualWidth value is becoming 0 Pin
indian1436-Nov-11 6:46
indian1436-Nov-11 6:46 
AnswerRe: ActualWidth value is becoming 0 Pin
Mark Salsbery6-Nov-11 8:36
Mark Salsbery6-Nov-11 8:36 

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

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