internal TransitionSet(TransitionSet handle) : this(Interop.TransitionSet.NewTransitionSet(TransitionSet.getCPtr(handle)), true) { if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } }
private TransitionSet CreateTransitionSet() { TransitionSet transitionSet = new TransitionSet(); if (animationType != AnimationType.None) { TransitionItemBase transitionItem = null; switch (animationType) { case AnimationType.SeamlessAnimationAppearing: transitionItem = defaultTransition.CreateTransition(ApplicationTransitionManager.Instance.SourceView, providerImage, true); break; case AnimationType.SeamlessAnimationDisappearing: transitionItem = defaultTransition.CreateTransition(providerImage, ApplicationTransitionManager.Instance.SourceView, false); break; case AnimationType.TransitionBaseAppearing: transitionItem = AppearingTransition.CreateTransition(providerImage, true); break; case AnimationType.TransitionBaseDisappearing: transitionItem = DisappearingTransition.CreateTransition(providerImage, false); break; } if (transitionItem != null) { transitionSet.AddTransition(transitionItem); transitionSet.Finished += TransitionSetFinished; transitionItem.Dispose(); transitionItem = null; } } return(transitionSet); }
private void PlayTransitionAnimation() { transitionSet = CreateTransitionSet(); window.Add(providerImage); transitionSet.Play(); // Notifies that the animation is started to provider. StartAnimation(); }
internal TransitionSet Assign(TransitionSet rhs) { TransitionSet ret = new TransitionSet(Interop.TransitionSet.Assign(SwigCPtr, TransitionSet.getCPtr(rhs)), false); if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
/// <summary> /// Downcasts a handle to transitionSet handle.<br /> /// If handle points to an transitionSet object, the downcast produces a valid handle.<br /> /// If not, the returned handle is left uninitialized.<br /> /// </summary> /// <param name="handle">Handle to an object.</param> /// <returns>Handle to an transitionSet object or an uninitialized handle.</returns> /// <exception cref="ArgumentNullException"> Thrown when handle is null. </exception> internal static TransitionSet DownCast(BaseHandle handle) { if (handle == null) { throw new ArgumentNullException(nameof(handle)); } TransitionSet ret = Registry.GetManagedBaseHandleFromNativePtr(handle) as TransitionSet; if (NDalicPINVOKE.SWIGPendingException.Pending) { throw NDalicPINVOKE.SWIGPendingException.Retrieve(); } return(ret); }
internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TransitionSet obj) { return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.SwigCPtr); }