Пример #1
0
 public Geometry()
 {
     x         = RegisterMotionProperty(new FloatMotionProperty(nameof(X), 0));
     y         = RegisterMotionProperty(new FloatMotionProperty(nameof(Y), 0));
     transform = RegisterMotionProperty(new MatrixMotionProperty(nameof(Transform)));
     rotation  = RegisterMotionProperty(new FloatMotionProperty(nameof(Rotation), 0));
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Geometry"/> class.
 /// </summary>
 public Geometry(bool hasCustomTransform = false)
 {
     x                       = RegisterMotionProperty(new FloatMotionProperty(nameof(X), 0));
     y                       = RegisterMotionProperty(new FloatMotionProperty(nameof(Y), 0));
     transform               = RegisterMotionProperty(new MatrixMotionProperty(nameof(Transform), SKMatrix.Identity));
     rotation                = RegisterMotionProperty(new FloatMotionProperty(nameof(Rotation), 0));
     opacityProperty         = RegisterMotionProperty(new FloatMotionProperty(nameof(Opacity), 1));
     this.hasCustomTransform = hasCustomTransform;
 }