Example #1
0
 public Transition(Element targetElement, string targetProperty, IValueBounds bounds, TransitionTiming timing, int delayMilliseconds = 0, ContinuationMode continuationMode = ContinuationMode.Restart)
 {
     this.targetElement    = targetElement;
     this.targetProperty   = targetProperty;
     this.valueBounds      = bounds;
     this.timing           = timing;
     this.delay            = delayMilliseconds;
     this.continuationMode = continuationMode;
 }
 public MultiplePropertyTransition(Element targetElement, IEnumerable <string> targetProperties, IValueBounds bounds, TransitionTiming timing, int delayMilliseconds = 0, Transition.ContinuationMode continuationMode = Transition.ContinuationMode.Restart)
 {
     transition            = new ParallelTransition(targetProperties.Select(targetProperty => new Transition(targetElement, targetProperty, bounds, timing, delayMilliseconds, continuationMode)).ToArray());
     transition.Completed += (sender, e) => RaiseCompleted();
 }
Example #3
0
 public static IValueBounds Reverse(this IValueBounds valueBounds)
 {
     return(new ReversedValueBounds(valueBounds));
 }
Example #4
0
 public ReversedValueBounds(IValueBounds source)
 {
     this.source = source;
 }