共用方式為


IAnimatedVisualSource 介面

定義

其他物件可以使用的動畫 視覺效果 ,例如 AnimatedVisualPlayer

public interface class IAnimatedVisualSource
/// [Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=0)]
/// [Windows.Foundation.Metadata.Guid(692544963, 28899, 21852, 150, 87, 1, 252, 64, 81, 22, 157)]
/// [Windows.Foundation.Metadata.Version(1)]
struct IAnimatedVisualSource
/// [Windows.Foundation.Metadata.Guid(692544963, 28899, 21852, 150, 87, 1, 252, 64, 81, 22, 157)]
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.XamlContract, 65536)]
struct IAnimatedVisualSource
[Microsoft.UI.Xaml.CustomAttributes.MUXContractProperty(version=0)]
[Windows.Foundation.Metadata.Guid(692544963, 28899, 21852, 150, 87, 1, 252, 64, 81, 22, 157)]
[Windows.Foundation.Metadata.Version(1)]
public interface IAnimatedVisualSource
[Windows.Foundation.Metadata.Guid(692544963, 28899, 21852, 150, 87, 1, 252, 64, 81, 22, 157)]
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.XamlContract), 65536)]
public interface IAnimatedVisualSource
Public Interface IAnimatedVisualSource
衍生
屬性
Microsoft.UI.Xaml.CustomAttributes.MUXContractPropertyAttribute GuidAttribute VersionAttribute ContractVersionAttribute

備註

呼叫 IAnimatedVisualSource.TryCreateAnimatedVisual (Compositor,Object) 方法來擷取 IAnimatedVisual 物件。 IAnimatedVisual然後,這可以用來取得 Composition.Visual,其可以使用 ElementCompositionPreview 的 方法來新增至 XAML 元素樹狀結構。

方法

TryCreateAnimatedVisual(Compositor, Object)

嘗試建立動畫視覺效果。

適用於