public void AnimationToRight() { var compositeTransform = RenderTransform as CompositeTransform; if (compositeTransform != null) { RightStartValue.Value = compositeTransform.TranslateX; RightEndValue.Value = ActualWidth; StoryboardToRight.Begin(); } }
public void StartToRight() { this.rightStartValue.Value = (this.RenderTransform as CompositeTransform).TranslateX; this.rightEndValue.Value = this.ActualWidth; StoryboardToRight.Begin(); }