WhilePressed.PressedPosition Property
Holds the initiall press-down position of the pointer that activated the trigger (read-only).
This can be used with a {SnapshotProperty}
binding to place things in response to the pointer position. If the trigger
isn't active at the time of reading, this property returns (0,0)
;
This property does not emit changed events, it is only intended for snapshotting.
This property is read-only. Writing to it does nothing.
Example
<Panel Color="Red">
<WhilePressed ux:Name="wpGesture">
<Rectangle ux:Name="rect" Alignment="TopLeft" Offset="{SnapshotProperty wpGesture.PressedPosition}" Width="20" Height="20" Color="White">
<RemovingAnimation>
<Change rect.Opacity="0" Duration="1" />
</RemovingAnimation>
</Rectangle>
</WhilePressed>
</Panel>
Location
- Namespace
- Fuse.Gestures
- Package
- Fuse.Gestures 2.9.1