CompositionObject.ImplicitAnimations 속성

정의

이 개체에 연결된 암시적 애니메이션의 컬렉션입니다.

public:
 property ImplicitAnimationCollection ^ ImplicitAnimations { ImplicitAnimationCollection ^ get(); void set(ImplicitAnimationCollection ^ value); };
ImplicitAnimationCollection ImplicitAnimations();

void ImplicitAnimations(ImplicitAnimationCollection value);
public ImplicitAnimationCollection ImplicitAnimations { get; set; }
var implicitAnimationCollection = compositionObject.implicitAnimations;
compositionObject.implicitAnimations = implicitAnimationCollection;
Public Property ImplicitAnimations As ImplicitAnimationCollection

속성 값

이 개체에 연결된 암시적 애니메이션의 컬렉션입니다.

Windows 요구 사항

디바이스 패밀리
Windows 10 Anniversary Edition (10.0.14393.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v3.0에서 도입되었습니다.)

예제

class PropertyAnimation 
{ 
  PropertyAnimation(Compositor compositor, SpriteVisual heroVisual, SpriteVisual listVisual) 
  { 
    // Define ImplicitAnimationCollection 
    ImplicitAnimationCollection implicitAnimations =  compositor.CreateImplicitAnimationCollection(); 

    // Trigger animation when the “Offset” property changes. 
    implicitAnimations["Offset"] = CreateAnimation(compositor); 

    // Assign ImplicitAnimations to a visual. Unlike Visual.Children,     
    // ImplicitAnimations can be shared by multiple visuals so that they  
    // share the same implicit animation behavior (same as Visual.Clip). 
    heroVisual.ImplicitAnimations = implicitAnimations; 

    // ImplicitAnimations can be shared among visuals  
    listVisual.ImplicitAnimations = implicitAnimations; 

    listVisual.Offset = new Vector3(20f, 20f, 20f); 
  } 

  Vector3KeyFrameAnimation CreateAnimation(Compositor compositor) 
  { 
    Vector3KeyFrameAnimation animation = compositor.CreateVector3KeyFrameAnimation(); 
    animation.InsertExpressionKeyFrame(0f, "this.StartingValue"); 
    animation.InsertExpressionKeyFrame(1f, "this.FinalValue"); 
    animation.Target = “Offset”; 
    animation.Duration = TimeSpan.FromSeconds(0.25); 
    return animation; 
  } 
} 

적용 대상