Click here to Skip to main content
15,884,094 members
Home / Discussions / WPF
   

WPF

 
GeneralRe: Binding To Single List Item Pin
Pete O'Hanlon27-Nov-18 22:19
mvePete O'Hanlon27-Nov-18 22:19 
GeneralRe: Binding To Single List Item Pin
Meshack Musundi27-Nov-18 21:24
professionalMeshack Musundi27-Nov-18 21:24 
GeneralRe: Binding To Single List Item Pin
Pete O'Hanlon27-Nov-18 22:18
mvePete O'Hanlon27-Nov-18 22:18 
GeneralRe: Binding To Single List Item Pin
Meshack Musundi27-Nov-18 22:45
professionalMeshack Musundi27-Nov-18 22:45 
GeneralRe: Binding To Single List Item Pin
Pete O'Hanlon27-Nov-18 23:11
mvePete O'Hanlon27-Nov-18 23:11 
AnswerRe: Binding To Single List Item Pin
Pete O'Hanlon27-Nov-18 21:01
mvePete O'Hanlon27-Nov-18 21:01 
AnswerRe: Binding To Single List Item Pin
Gerry Schmitz28-Nov-18 19:46
mveGerry Schmitz28-Nov-18 19:46 
Question(solved) Drag and Drop problem Pin
Super Lloyd20-Nov-18 23:36
Super Lloyd20-Nov-18 23:36 
I have problem dragging file to the explorer.
It seems to be something to do with my current application settings.

I have a test app with hardcoded file and when the appropriate mouse event happen I trigger the following code (with hard coded file path)
C#
var dragObj = new DataObject();
dragObj.SetFileDropList(new StringCollection() { @"H:\Temp\popeye.svg" });
DragDrop.DoDragDrop(new Window(), dragObj, DragDropEffects.Copy);

however if I do that in my other app (and I do it from the UI thread as well and with the same hard coded paths), nothing is dropped and the explorer show the forbidden cursor and the operation only complete when my mouse enter my window rect again.

I am stomped.. what could cause this code to work in one app, but not the other?
Remark: I am using the same version of the .NET Framework in both test and real app.

[EDIT]
Newsflash: this seems to be related to the UIElement I drag from being a drop target as well.
When I commented out the Drop event handlers, it dragged successfully.
Tricky, I need to be able to drop to it as well... mm....

[EDIT 2]
In my drop code I added some UIElement.MouseCapture() call. this was what prevented my code from working! OMG | :OMG:
A new .NET Serializer
All in one Menu-Ribbon Bar
Taking over the world since 1371!


modified 21-Nov-18 11:06am.

Question(solved) WPF TreeViewItem and Focus Pin
Super Lloyd19-Nov-18 6:45
Super Lloyd19-Nov-18 6:45 
QuestionBest book(s) on WPF Pin
stefano_v15-Nov-18 22:22
stefano_v15-Nov-18 22:22 
AnswerRe: Best book(s) on WPF Pin
Gerry Schmitz20-Nov-18 7:00
mveGerry Schmitz20-Nov-18 7:00 
QuestionWPF - HELP with datepicker Pin
Member 1069141114-Nov-18 3:18
Member 1069141114-Nov-18 3:18 
SuggestionRe: WPF - HELP with datepicker Pin
Richard Deeming14-Nov-18 6:27
mveRichard Deeming14-Nov-18 6:27 
QuestionButton Style Question Pin
Kevin Marois6-Nov-18 4:26
professionalKevin Marois6-Nov-18 4:26 
AnswerRe: Button Style Question Pin
Super Lloyd19-Nov-18 14:44
Super Lloyd19-Nov-18 14:44 
QuestionHow to call "customized" mahapps.metro modal-dialog window? Pin
Pew_new24-Sep-18 6:50
Pew_new24-Sep-18 6:50 
AnswerRe: How to call "customized" mahapps.metro modal-dialog window? Pin
Super Lloyd19-Nov-18 14:59
Super Lloyd19-Nov-18 14:59 
QuestionCreating DataGrid IN Code Behind Pin
Kevin Marois19-Sep-18 13:00
professionalKevin Marois19-Sep-18 13:00 
AnswerRe: Creating DataGrid IN Code Behind Pin
Gerry Schmitz24-Sep-18 6:34
mveGerry Schmitz24-Sep-18 6:34 
QuestionCreating DataGrid IN Code Behind Pin
Kevin Marois19-Sep-18 13:00
professionalKevin Marois19-Sep-18 13:00 
QuestionListBox UserControl Binding Problelm Pin
Kevin Marois18-Sep-18 12:03
professionalKevin Marois18-Sep-18 12:03 
AnswerRe: ListBox UserControl Binding Problelm Pin
Richard Deeming19-Sep-18 8:14
mveRichard Deeming19-Sep-18 8:14 
GeneralRe: ListBox UserControl Binding Problelm Pin
Kevin Marois19-Sep-18 8:58
professionalKevin Marois19-Sep-18 8:58 
QuestionDynamically Created DataGrids Binding Problem Pin
Kevin Marois17-Sep-18 6:44
professionalKevin Marois17-Sep-18 6:44 
AnswerRe: Dynamically Created DataGrids Binding Problem Pin
Gerry Schmitz17-Sep-18 15:00
mveGerry Schmitz17-Sep-18 15:00 

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.