ClassSimpleDragDropActionDescriptor
Definition
Namespace:ArtOfTest.WebAii.Design.IntrinsicTranslators.Silverlight.Descriptors
Assembly:ArtOfTest.WebAii.Design.dll
Syntax:
[DataContract(Namespace = "http://artoftest.com/schemas/WebAiiDesignCanvas/2.0.0")]
public class SimpleDragDropActionDescriptor : XamlActionDescriptor, INotifyPropertyChanged, ICustomTypeDescriptor, IExtensibleDataObject, IInspectWebSettings
Inheritance: objectDataBoundObjectAutomationDescriptorActionDescriptorXamlActionDescriptorSimpleDragDropActionDescriptor
Implements:
Inherited Members
Constructors
SimpleDragDropActionDescriptor(FrameworkElement, ActionPoint, FrameworkElement, ActionPoint, DragDropWindowData, DropTarget, bool)
Declaration
public SimpleDragDropActionDescriptor(FrameworkElement initialTarget, ActionPoint initialOffset, FrameworkElement finalTarget, ActionPoint finalOffset, DragDropWindowData windowData, DropTarget dropTargetType, bool validateMouseLocation)
Parameters
initialTarget
initialOffset
finalTarget
finalOffset
windowData
dropTargetType
validateMouseLocation
SimpleDragDropActionDescriptor(FrameworkElement, FrameworkElement)
Declaration
public SimpleDragDropActionDescriptor(FrameworkElement initialTarget, FrameworkElement finalTarget)
Parameters
initialTarget
finalTarget
Properties
ApplicationDropOffset
Declaration
[DataMember(Name = "LayoutRootDropOffset")]
public ActionPoint ApplicationDropOffset { get; set; }
Property Value
DragDropWindowData
Declaration
[Browsable(true)]
[DataMember(Name = "DropWindowData")]
public DragDropWindowData DragDropWindowData { get; set; }
Property Value
DragOffset
Declaration
[DataMember(Name = "DragOffset")]
public ActionPoint DragOffset { get; set; }
Property Value
DragTarget
Declaration
public ElementDescriptor DragTarget { get; set; }
Property Value
DropTarget
Declaration
public ElementDescriptor DropTarget { get; set; }
Property Value
DropTargetType
Declaration
[DataMember(Name = "DropTargetType")]
public DropTarget DropTargetType { get; set; }
Property Value
ElementDropOffset
Declaration
[DataMember(Name = "DropOffset")]
public ActionPoint ElementDropOffset { get; set; }
Property Value
EnsureDropPointInBrowser
Declaration
[DataMember(Name = "EnsureDropPointInBrowser")]
public bool EnsureDropPointInBrowser { get; set; }
Property Value
FriendlyDescription
Get a friendly description of this descriptor to show in the scenario explorer.
Declaration
public override string FriendlyDescription { get; }
Property Value
Overrides
PrimaryTarget
Declaration
[Browsable(false)]
public override ElementDescriptor PrimaryTarget { get; set; }
Property Value
Overrides
PrimaryTargetKey
Gets the primary target key
Declaration
public override string PrimaryTargetKey { get; }
Property Value
Overrides
RequiredAssemblyReferences
Any addition assembly references to be added to the project on code gen.
Declaration
public override string[] RequiredAssemblyReferences { get; }
Property Value
string[]
Overrides
SecondaryTarget
Declaration
[Browsable(false)]
public override ElementDescriptor SecondaryTarget { get; set; }
Property Value
Overrides
SecondaryTargetKey
Gets the secondary target key
Declaration
public override string SecondaryTargetKey { get; }
Property Value
Overrides
SimulateRealUser
Declaration
[Browsable(false)]
[DataMember(Name = "SimulateRealUser", IsRequired = false)]
public override bool SimulateRealUser { get; set; }
Property Value
Overrides
Methods
Execute(IApplication)
Declaration
public override void Execute(IApplication hostApp)
Parameters
hostApp
Overrides
ToCode()
This method is called when the user requests code generation. The framework initializes the TestMethod property of this object with a new instance that this method simply needs to add its custom codegen to it.
Declaration
public override void ToCode()
Overrides
UsesTarget(string)
Whether or not this descriptor will use a target when it executes.
Declaration
public override bool UsesTarget(string target)
Parameters
target
Returns
Overrides
Remarks
Most descriptors use all of their targets, but some descriptors only use certain targets in specific modes. This method lets us check whether a descriptor uses a target in the mode the descriptor is currently in.