Compartir a través de


IXRDoubleKeyFrameCollection (Compact 2013)

3/28/2014

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

Syntax

class IXRDoubleKeyFrameCollection : public IXRDependencyObject

Inheritance Hierarchy

IXRDependencyObject

    IXRDoubleKeyFrameCollection

Methods

Method

Description

IXRDoubleKeyFrameCollection::Add

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

IXRDoubleKeyFrameCollection::Clear

Removes all items from this collection.

IXRDoubleKeyFrameCollection::Contains

Determines whether an item is in this collection.

IXRDoubleKeyFrameCollection::GetCount

Retrieves the number of items in this collection.

IXRDoubleKeyFrameCollection::GetItem

Retrieves the item at the specified index in this collection.

IXRDoubleKeyFrameCollection::IndexOf

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

IXRDoubleKeyFrameCollection::Insert

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

IXRDoubleKeyFrameCollection::Remove

Removes a specific item from this collection.

IXRDoubleKeyFrameCollection::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 a part of an IXRDoubleAnimationUsingKeyFrames object to animate a property that takes a float value, such as Width, together with a set of key frames.

You can obtain a pointer to this collection by calling IXRDoubleAnimationUsingKeyFrames::GetKeyFrames. Then, you can use the methods of this class to add, remove, or retrieve items. You can also clear the complete collection by calling the IXRDoubleKeyFrameCollection::Clear method.

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

You can define a double key-frame collection in Microsoft Silverlight 3 XAML. For information about the differences between XAML in XAML for Windows Embedded and Silverlight 3, see Differences Between Microsoft Silverlight 3 and XAML for Windows Embedded. For more information about how to define this collection in the source XAML for your application, see the DoubleKeyFrameCollection Class on MSDN.

Note

This programming element includes "double" in its name in order to maintain parity with the name of its equivalent XAML element in the source XAML markup. The name of this XAML element is generated by the Blend for Visual Studio Integrated Development Environment. However, in XAML for Windows Embedded, this object represents a float instead of a double.

.NET Framework Equivalent

System.Windows.Media.Animation.DoubleKeyFrameCollection

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

Classes for Collection Management
IXRDoubleAnimationUsingKeyFrames::GetKeyFrames