public DoublePropertyTransition(IVisualElement visual,
                                 IDependencyProperty <Double> property,
                                 TimeSpan duration,
                                 TimeSpan delay,
                                 TransitionFunctionType timing)
     : base(visual, property, duration, delay, timing)
 {
 }
 public ThicknessTransition(IVisualElement visual,
                            IDependencyProperty <QuantifiedThickness> property,
                            TimeSpan duration,
                            TimeSpan delay,
                            TransitionFunctionType timing)
     : base(visual, property, duration, delay, timing)
 {
 }
Exemplo n.º 3
0
 public TransformTransition(IVisualElement visual,
                            IDependencyProperty <TransformationMatrix> property,
                            TimeSpan duration,
                            TimeSpan delay,
                            TransitionFunctionType timing)
     : base(visual, property, duration, delay, timing)
 {
 }
 public BrushTransition(IVisualElement visual,
                        IDependencyProperty <IBrush> property,
                        TimeSpan duration,
                        TimeSpan delay,
                        TransitionFunctionType timing) : base(visual, property, duration, delay, timing)
 {
     _startValue = SolidColorBrush.Tranparent;
     _endValue   = SolidColorBrush.Tranparent;
 }
 public QuantifiedDoubleTransition(IVisualElement visual,
                                   IDependencyProperty <QuantifiedDouble?> property,
                                   TimeSpan duration,
                                   TimeSpan delay,
                                   TransitionFunctionType timing)
     : base(visual, property, duration, delay, timing)
 {
     _currentDifference = QuantifiedDouble.Zero;
 }
Exemplo n.º 6
0
 public Transition(StyleSetterType setterType,
                   TimeSpan duration,
                   TimeSpan delay,
                   TransitionFunctionType timing)
 {
     SetterType = setterType;
     Duration   = duration;
     Delay      = delay;
     Timing     = timing;
 }
        protected PropertyTransition(IVisualElement visual,
                                     IDependencyProperty <T> property,
                                     TimeSpan duration,
                                     TimeSpan delay,
                                     TransitionFunctionType timing)
            : base(duration, delay, Easing.QuadraticOut)
        {
            _visual   = visual;
            _property = property;
            Duration  = duration;
            Delay     = delay;
            Timing    = timing;

            CurrentStartValue = property.GetValue(visual);
            CurrentEndValue   = property.GetValue(visual);
        }
Exemplo n.º 8
0
        public static ITransition BuildTransition(IVisualElement visual,
                                                  IDependencyProperty property,
                                                  TimeSpan duration,
                                                  TimeSpan delay,
                                                  TransitionFunctionType fn)
        {
            switch (property)
            {
            case IDependencyProperty <Double> dbl:
                var r = new DoublePropertyTransition(visual, dbl, duration,
                                                     delay, fn);
                return(r);

            case IDependencyProperty <IBrush> brush:
                return(new BrushTransition(visual, brush, duration, delay, fn));

            case IDependencyProperty <TransformationMatrix> matrix:
                return(new TransformTransition(visual, matrix, duration, delay, fn));

            default:
                throw new NotImplementedException();
            }
        }