Compartilhar via


IXRColorKeyFrameCollection (Compact 2013)

3/28/2014

This class represents a collection of IXRColorKeyFrame objects that can be accessed individually by index.

Syntax

class IXRColorKeyFrameCollection : public IXRDependencyObject

Inheritance Hierarchy

IXRDependencyObject

    IXRColorKeyFrameCollection

Methods

Method

Description

IXRColorKeyFrameCollection::Add

Adds an item to the end of this collection and retrieves the index of where it was added.

IXRColorKeyFrameCollection::Clear

Removes all items from this collection.

IXRColorKeyFrameCollection::Contains

Determines whether an item is in this collection.

IXRColorKeyFrameCollection::GetCount

Retrieves the number of items in this collection.

IXRColorKeyFrameCollection::GetItem

Retrieves the item at the specified index in this collection.

IXRColorKeyFrameCollection::IndexOf

Searches for the specified item and retrieves the zero-based index of its last occurrence within this collection.

IXRColorKeyFrameCollection::Insert

Inserts an item into this collection at the location that has the specified index value.

IXRColorKeyFrameCollection::Remove

Removes the last occurrence of a specific item from this collection.

IXRColorKeyFrameCollection::RemoveAt

Removes the item at the specified index from this collection.

Thread Safety

Members of this class are thread-safe if you previously called IXRApplication::CreateHostFromXaml and supplied it with an XRWindowCreateParams structure that has AllowsMultipleThreadAccess set to true.

Remarks

This collection is used as part of IXRColorAnimationUsingKeyFrames to animate a Color property value through a set of key frames over a specified duration. This collection describes the set of key-frame techniques that define an animation segment with a Color target value.

You can obtain a pointer to this collection by calling IXRColorAnimationUsingKeyFrames::GetKeyFrames. Then, you can use the methods to add, remove, or retrieve items. You can also clear the complete collection by calling the IXRColorKeyFrameCollection::Clearmethod.

When you create a class instance, use an IXRColorKeyFrameCollectionPtr smart pointer instead of a raw interface pointer. For more information, see XRPtr<Interface>.

.NET Framework Equivalent

System.Windows.Media.Animation.ColorKeyFrameCollection

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

Classes for Collection Management
IXRColorAnimationUsingKeyFrames::GetKeyFrames