Mercurial > silverbladetech
comparison Chronosv2/source/DragAndDrop/IDataDropObjectProvider.cs @ 10:443821e55f06
Initial cleaned up add from Codeplex files
author | stevenh7776 stevenhollidge@hotmail.com |
---|---|
date | Tue, 21 Feb 2012 17:25:44 +0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
9:904a9faadf8b | 10:443821e55f06 |
---|---|
1 using System.Windows; | |
2 using System.Windows.Input; | |
3 | |
4 namespace Chronos.Presentation.DragAndDrop | |
5 { | |
6 // This is an interface that can be implemented to help the DragHelper ( aka the source ) | |
7 public interface IDataDropObjectProvider | |
8 { | |
9 #region · Properties · | |
10 | |
11 //Flag of actions sypported by implementation of IDataDropObjectProvider | |
12 DragDropProviderActions SupportedActions | |
13 { | |
14 get; | |
15 } | |
16 | |
17 #endregion | |
18 | |
19 #region · Methods · | |
20 | |
21 // Called before StartDrag () to get the Data () to be used in the DataObject | |
22 object GetData(); | |
23 | |
24 // Called before StartDrag () to add other formats , this way you can drag drop externally.. | |
25 void AppendData(ref IDataObject data, MouseEventArgs e); | |
26 | |
27 // Called to get the visual ( UIElement visual brush of the object being dragged.. | |
28 UIElement GetVisual(MouseEventArgs e); | |
29 | |
30 // Gives feedback during Drag | |
31 void GiveFeedback(GiveFeedbackEventArgs args); | |
32 | |
33 // implements ContinueDrag -- to canceld the D&D.. | |
34 void ContinueDrag(QueryContinueDragEventArgs args); | |
35 | |
36 // called by the TARGET object .. this will attempt to "unparent" the current child so we can add it a child some where else.. | |
37 bool UnParent(); | |
38 | |
39 #endregion | |
40 } | |
41 } |