Click here to Skip to main content
15,919,341 members
Home / Discussions / WPF
   

WPF

 
QuestionHorizontalContentAlignment=Left and still stretch the contentcontrol Pin
indian1439-Nov-11 10:36
indian1439-Nov-11 10:36 
QuestionContentControl Pin
indian1438-Nov-11 13:25
indian1438-Nov-11 13:25 
AnswerRe: ContentControl Pin
Abhinav S8-Nov-11 21:33
Abhinav S8-Nov-11 21:33 
GeneralRe: ContentControl Pin
indian1439-Nov-11 7:16
indian1439-Nov-11 7:16 
AnswerRe: ContentControl Pin
Mark Salsbery9-Nov-11 5:44
Mark Salsbery9-Nov-11 5:44 
GeneralRe: ContentControl Pin
indian1439-Nov-11 7:08
indian1439-Nov-11 7:08 
QuestionMVVM Recommendations Pin
Tom Delany8-Nov-11 7:10
Tom Delany8-Nov-11 7:10 
AnswerRe: MVVM Recommendations Pin
SledgeHammer018-Nov-11 7:23
SledgeHammer018-Nov-11 7:23 
GeneralRe: MVVM Recommendations Pin
Tom Delany8-Nov-11 7:52
Tom Delany8-Nov-11 7:52 
AnswerRe: MVVM Recommendations Pin
Kevin Marois8-Nov-11 7:36
professionalKevin Marois8-Nov-11 7:36 
GeneralRe: MVVM Recommendations Pin
Tom Delany8-Nov-11 7:53
Tom Delany8-Nov-11 7:53 
AnswerRe: MVVM Recommendations Pin
Abhinav S8-Nov-11 21:38
Abhinav S8-Nov-11 21:38 
GeneralRe: MVVM Recommendations Pin
Tom Delany9-Nov-11 3:57
Tom Delany9-Nov-11 3:57 
GeneralRe: MVVM Recommendations Pin
Wayne Gaylard9-Nov-11 4:23
professionalWayne Gaylard9-Nov-11 4:23 
GeneralRe: MVVM Recommendations Pin
Tom Delany9-Nov-11 4:51
Tom Delany9-Nov-11 4:51 
GeneralRe: MVVM Recommendations Pin
Abhinav S9-Nov-11 6:41
Abhinav S9-Nov-11 6:41 
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 

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.