Source : Element ux
Source element is an element that has draggable behavior on which intersect with the element that has WhileDroppingBy
trigger
a Trigger that activate when the element that has WhileDroppedBy
trigger is intersected with Source
element (Draggable Element)
#Example:
<App>
<JavaScript>
var Observable = require("FuseJS/Observable");
var dataToTransfer = new Observable("Data to transfer");
module.exports = { dataToTransfer, dataReceived: function (args) { console.dir(args.data); } }
</JavaScript>
<ClientPanel>
<Panel ux:Name="source" X="40" Y="80" Size="80">
<Rectangle Layer="Background" Color="#afa" ux:Name="bg" />
<Draggable />
<Shadow Distance="0" Size="0" ux:Name="shadow" />
<WhilePressed>
<Scale Vector="1.2" Duration="0.2" />
<Change shadow.Size="5" Duration="0.2" />
<Change shadow.Distance="3" Duration="0.2" />
<Change shadow.Color="#666" Duration="0.1" />
</WhilePressed>
<WhileDragging>
<Change shadow.Size="10" Duration="0.1" />
<Change shadow.Distance="6" Duration="0.1" />
<Change shadow.Color="#333" Duration="0.1" />
</WhileDragging>
<WhileDraggingOver Target="dropPanel">
<Change bg.Color="#0f0" />
<Change bg.StrokeWidth="2" Duration="0.2" />
<Change bg.StrokeColor="#f00" Duration="0.2" />
</WhileDraggingOver>
<Dropped To="dropPanel" Data="{dataToTransfer}">
<Set source.Size="50" />
</Dropped>
</Panel>
<Panel Size="80" X="80" Y="500" Color="#ccc" ux:Name="dropPanel">
<WhileDroppingBy Source="source">
<Change dropPanel.Color="#0ff" Duration="0.2" />
</WhileDroppingBy>
<Dropped By="source" Handler="{dataReceived}">
<Scale Vector="1.2" Duration="0.2" />
</Dropped>
</Panel>
</ClientPanel>
</App>
Source element is an element that has draggable behavior on which intersect with the element that has WhileDroppingBy
trigger
Source element classname that has draggable behavior on which intersect with the element that has WhileDroppingBy
trigger
Creates a new WhileDroppingBy
Target Element classname that is intersected by a draggable element
Call in situations where the bypassing is forced. This should be rare since during rooting the normal bypass mechanism of the trigger will apply.
Inverts the trigger so it will be active when it would normally be inactive, and vice versa.
A list of actions that execute with the trigger. These may react on simple direction changes, or at specific time offsets.
If there is a transition between forward/backward playback and two timeilnes are being used (implicit or explicit) this specifies the cross-fade time.
true
if there is an explicit backward animation.
Play the trigger from where it currently is to the end.
Indicates the trigger is bound to the layout of a visual. This will keep the trigger in Bypass mode until after the first layout of the element is obtained. This is required since layout does not happen in the same root grouping/update phase as the creation of the element, yet not having a layout should qualify as part of the rooting period.
Stretches the duration of the animation to fill up this period of time.
Specifies a multiplier to the elapsed time for animation playback.
Nodes to add to the Parent when this trigger is any non-deactivated state (Progress > 0)
The list of bindings belonging to this node.
The context parent is the semantic parent of this node. It is where non-UI structure should be resolved, like looking for the DataContext, a Navigation, or other semantic item.
Finds the first node with a given name that satisfies the given acceptor. The serach algorithm works as follows: Nodes in the subtree are matched first, then it matches the nodes in the subtrees ofthe ancestor nodes by turn all the way to the root. If no matching node is found, the function returns null.
Whether rooting for this node is completed. Returns false if unrooting has started.
Whether rooting of this node has started. Note that even if this property returns true, rooting may not yet be completed for the node. See also IsRootingCompleted.
Run-time name of the node. This property is automatically set using the ux:Name attribute.
Returns the next sibling node of the given type.
If you override OnRooted
you must call base.OnRooted()
first in your derived class. No other processing should happen first, otherwise you might end up in an undefined state.
The parent Visual of this node. Will return null if the node is not rooted.
Returns the next sibling node of the given type.
A linked list holding data for extrinsic properties.
hide
hide
Interface for objects that can have a script engine representation
hide