public void AnimationToLeft() { var compositeTransform = this.RenderTransform as CompositeTransform; if (compositeTransform != null) { LeftStartValue.Value = compositeTransform.TranslateX; LeftEndValue.Value = -ActualWidth; StoryboardToLeft.Begin(); } }
public void StartToLeft() { this.leftStartValue.Value = (this.RenderTransform as CompositeTransform).TranslateX; this.leftEndValue.Value = -this.ActualWidth; StoryboardToLeft.Begin(); }