Skip to content

TrevorDArcyEvans/Uno-Canvas-Dragging-Shape-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Uno Canvas Dragging Shapes Example

InUse

An example using Uno which shows:

  • putting a shape on a Canvas
  • selecting shape
  • dragging shape to a new position
  • changing z-order of shape
Initial Positons

InitialPositons

New Positons

NewPositions

Points of interest

  • each shape hooks both PointerReleased and PointerExited events to detect when dragging has stopped. This greatly increases stability, especially on the WASM head.
  • Canvas.SetZIndex is broken on Linux aka Skia.Gtk