wpf - Why I cannot drop files from explorer to FlowDocumentReader and how to fix it? -
I'm trying to apply a piece of functionality that will allow the user to drag files into an application, the FlowDocumentReader.
My problem is that although I have AllowDrop = true on the Flow Document Render, the cursor does not change on the "Drop Down" icon, but instead of the "Drop permission" icon, it changes only to the Flow DocumentRadder All other parts and UIs (window automatically, other controls) do the required work The flow documentreader actually receives events, and it is possible to handle the drop, but using the There is no visual indication that he can leave the mouse here.
I also "drop" "cursor = cursor by setting cursor."
To leave here dragrover event must be handled in the flow document.
xaml:
& lt ;! - & lt; Flow documentreader x: name = "fdr" background = "white" & gt; & Lt; FlowDocument x: name = "Doctor" Allow = "true" dragent = "doc_DragOver" drop = "doc_Drop" background = "white" /> & Lt; / FlowDocumentReader & gt; - & gt; & Lt; FlowDocumentReader x: name = "fdr" background = "white" & gt; & Lt; FlowDocument x: name = "Doctor" Allow = "true" drag over = "doc_DragOver" drop = "doc_Drop" background = "white" /> & Lt; / FlowDocumentReader & gt;
Behind the code:
Private zero doc_DragOver (Object Sender, DragEventArgs e) {e.Effects = DragDropEffects.All; E.Handled = True; } Private Zero doc_Drop (Object Sender, DragEventArgs E) {}
Comments
Post a Comment