Class KeyFrames

    Definition

    Namespace:
    Tizen.NUI
    Assembly:
    Tizen.NUI.dll

    A set of key frames for a property that can be animated using DALi animation.
    This allows the generation of key frame objects from individual Property::Values.

    public class KeyFrames : BaseHandle, IDynamicResourceHandler, INameScope, System.IDisposable
    Inheritance
    object
    BindableObject
    Element
    BaseHandle
    KeyFrames
    Implements
    IDynamicResourceHandler
    INameScope
    System.IDisposable
    Examples
         View view = new View()
         {
             Size2D = new Size2D(100, 100),
             Position2D = new Position2D(100, 100),
             BackgroundColor = Color.Red,
         };
    
         Window.Default.Add(view);
         Animation animation = new Animation(5000); // 5s duration.
         KeyFrames keyFrames = new KeyFrames();
         keyFrames.Add(0.0f, new Rotation(new Radian(new Degree(-32.0f)), Vector3.ZAxis));
         keyFrames.Add(0.3f, new Rotation(new Radian(new Degree(133.0f)), Vector3.ZAxis));
         keyFrames.Add(0.75f, new Rotation(new Radian(new Degree(-12.0f)), Vector3.ZAxis));
         keyFrames.Add(1.0f, new Rotation(new Radian(new Degree(135.0f)), Vector3.ZAxis));
         animation.AnimateBetween(view, "Orientation", keyFrames);
         animation.Play();

    Constructors

    View Source

    KeyFrames()

    Creates an initialized KeyFrames handle.

    Declaration
    public KeyFrames()

    Methods

    View Source

    Add(float, object, AlphaFunction)

    Adds a key frame.

    Declaration
    public void Add(float progress, object value, AlphaFunction alpha)
    Parameters
    Type Name Description
    float progress

    A progress value between 0.0 and 1.0.

    object value

    A value

    AlphaFunction alpha

    The alpha function used to blend to the next keyframe.

    View Source

    Add(float, object)

    Adds a key frame.

    Declaration
    public void Add(float progress, object value)
    Parameters
    Type Name Description
    float progress

    A progress value between 0.0 and 1.0.

    object value

    A value.

    View Source

    Add(float, PropertyValue, AlphaFunction)

    Adds a key frame.

    Declaration
    public void Add(float progress, PropertyValue value, AlphaFunction alpha)
    Parameters
    Type Name Description
    float progress

    A progress value between 0.0 and 1.0.

    PropertyValue value

    A value.

    AlphaFunction alpha

    The alpha function used to blend to the next keyframe.

    View Source

    Add(float, PropertyValue)

    Adds a key frame.

    Declaration
    public void Add(float progress, PropertyValue value)
    Parameters
    Type Name Description
    float progress

    A progress value between 0.0 and 1.0.

    PropertyValue value

    A value.

    View Source

    GetKeyFrame(uint, out float, PropertyValue)

    Get the progress and value from specific key frame.
    If index is greater or equal than total key frame count, progress and value is not changed.

    Declaration
    public void GetKeyFrame(uint index, out float progress, PropertyValue value)
    Parameters
    Type Name Description
    uint index

    The index of keyframe.

    float progress

    A progress value between 0.0 and 1.0.

    PropertyValue value

    A value.

    View Source

    GetKeyFrameCount()

    Get the number of added key frame.

    Declaration
    public uint GetKeyFrameCount()
    Returns
    Type Description
    uint

    The number of key frames currently added to the KeyFrames object.

    View Source

    GetType()

    Gets the type of the key frame.
    An empty key frame will return PropertyType.None, wheras an initialised
    key frame object will return the type of it's first element.

    Declaration
    public PropertyType GetType()
    Returns
    Type Description
    PropertyType

    The key frame property type

    View Source

    ReleaseSwigCPtr(HandleRef)

    Declaration
    protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
    Parameters
    Type Name Description
    System.Runtime.InteropServices.HandleRef swigCPtr
    Overrides
    BaseHandle.ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef)
    View Source

    SetKeyFrameValue(uint, PropertyValue)

    Set the value to specific key frame.
    If index is greater or equal than total key frame count or value's PropertyType is not matched, Nothing happened.

    Declaration
    public void SetKeyFrameValue(uint index, PropertyValue value)
    Parameters
    Type Name Description
    uint index

    The index of keyframe.

    PropertyValue value

    A value.

    Implements

    IDynamicResourceHandler
    INameScope
    System.IDisposable

    Extension Methods

    BindableObjectExtensions.SetBinding(BindableObject, BindableProperty, string, BindingMode, IValueConverter, string)
    NameScopeExtensions.FindByName<T>(Element, string)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX