Example #1
0
        public override ITransition GetTransition(UIElement element)
        {
            if (!(element is FrameworkElement))
            {
                throw new NotSupportedException("ItemTurnstileTransition only supports framework elements, they have the LayoutUpdated event");
            }

            var builder1 = new TurnstileFeatherStoryboardBuilder(XMode, YMode);
            var builder2 = new ContinuumLeafStoryboardBuilder(XMode);

            CustomAnimationTransition trans = new CustomAnimationTransition(element as FrameworkElement, new IStoryboardBuilder[] { builder1, builder2 });

            return(trans);
        }
        public override ITransition GetTransition(UIElement element)
        {
            if(!(element is FrameworkElement))
                throw new NotSupportedException("ItemTurnstileTransition only supports framework elements, they have the LayoutUpdated event");

            var builder1 = new TurnstileFeatherStoryboardBuilder(XMode, YMode);
            var builder2 = new ContinuumLeafStoryboardBuilder(XMode);

            CustomAnimationTransition trans = new CustomAnimationTransition(element as FrameworkElement, new IStoryboardBuilder[] { builder1, builder2 });

            return trans;
        }