Пример #1
0
        public void AnimationToLeft()
        {
            var compositeTransform = this.RenderTransform as CompositeTransform;

            if (compositeTransform != null)
            {
                LeftStartValue.Value = compositeTransform.TranslateX;
                LeftEndValue.Value   = -ActualWidth;
                StoryboardToLeft.Begin();
            }
        }
Пример #2
0
 public void StartToLeft()
 {
     this.leftStartValue.Value = (this.RenderTransform as CompositeTransform).TranslateX;
     this.leftEndValue.Value   = -this.ActualWidth;
     StoryboardToLeft.Begin();
 }