Table of Contents

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 carry that inverse back to zero on the layout transition) 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). Several Motions may hold one id at once: the one that took it last leads, and the others are drawn over it while it moves from one of their boxes, fading out as it crossfades, and hidden otherwise; when the lead leaves, the holder of those left that took the id most recently leads in its place, tweening from the lead's box.

public string? LayoutId { get; init; }

Property Value

string