Megosztás a következőn keresztül:


Visual.Offset Property

Definition

The offset of the visual relative to its parent or for a root visual the offset relative to the upper-left corner of the windows that hosts the visual. Animatable.

public:
 property float3 Offset { float3 get(); void set(float3 value); };
float3 Offset();

void Offset(float3 value);
public Vector3 Offset { get; set; }
var vector3 = visual.offset;
visual.offset = vector3;
Public Property Offset As Vector3

Property Value

Vector3 Vector3

float3

Offset of the visual relative to its parent.

Remarks

This property can be animated. Call CompositionObject.StartAnimation to associate it with a CompositionAnimation.

Applies to