Property LayoutId
- Namespace
- Velvet
- Assembly
- Velvet.Docs.dll
LayoutId
Shared-element layout animation identity. When a Motion carrying this same string patches at a resolved layout rect (position and/or size) different from the rect the SAME id last settled at — including a different physical element entirely, e.g. after a same-key type flip or a move to a different parent — it tweens from the old rect to the new one (FLIP: capture the old rect, let layout settle at the new one, apply an inverse transform, then spring that inverse back to zero) instead of jump-cutting. Independent of Variants/ Animate: a layoutId tween runs from the ACTUAL rect delta, not a class-defined from/to pair. Null = no layout animation (ordinary jump-cut on a rect change, matching every other element). Two Motions in the same tree must never share a live layoutId simultaneously — the second one to patch silently steals the registration (see MotionLayoutIdDriver).
public string? LayoutId { get; init; }
Property Value
- string