/// <summary>
 /// LayoutTransition constructor.
 /// </summary>
 /// <param name="condition">The animatable condition.</param>
 /// <param name="animatableProperty">the property to animate.</param>
 /// <param name="targetValue">target value of the property.</param>
 /// <param name="animator">Components to define the animator.</param>
 /// <since_tizen> 6 </since_tizen>
 public LayoutTransition(TransitionCondition condition,
                         AnimatableProperties animatableProperty,
                         object targetValue,
                         TransitionComponents animator)
 {
     Condition          = condition;
     AnimatableProperty = animatableProperty;
     Animator           = animator;
     TargetValue        = targetValue;
 }
Beispiel #2
0
 /// <summary>
 /// Iterate transitions and replace Position Components if replacements found in list.
 /// </summary>
 private void FindAndReplaceAnimatorComponentsForProperty(TransitionList sourceTransitionList,
                                                          AnimatableProperties propertyToMatch,
                                                          ref TransitionComponents transitionComponentToUpdate)
 {
     foreach (LayoutTransition transition in sourceTransitionList)
     {
         if (transition.AnimatableProperty == propertyToMatch)
         {
             // Matched property to animate is for the propertyToMatch so use provided Animator.
             transitionComponentToUpdate = transition.Animator;
         }
     }
 }