Dela via


Visual.ParentForTransform Property

Definition

Visual specifying the coordinate system in which this visual is composed.

public:
 property Visual ^ ParentForTransform { Visual ^ get(); void set(Visual ^ value); };
Visual ParentForTransform();

void ParentForTransform(Visual value);
public Visual ParentForTransform { get; set; }
var visual = visual.parentForTransform;
visual.parentForTransform = visual;
Public Property ParentForTransform As Visual

Property Value

Visual specifying the coordinate system in which this visual is composed.

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Remarks

ParentForTransform allows you to change the coordinate system in which a visual is composed. You can specify another visual that acts as a visual's "transform parent". That is, the visual in question will inherit accumulated transforms as though it were the child of that other visual. Note that this includes the effects of all properties that relate to transform, such as Visual.RotationAngle, or Visual.AnchorPoint, on the specified "transform parent" visual and all of its "transform ancestors".

Applies to