예제 #1
0
        public void AnimationToRight()
        {
            var compositeTransform = RenderTransform as CompositeTransform;

            if (compositeTransform != null)
            {
                RightStartValue.Value = compositeTransform.TranslateX;
                RightEndValue.Value   = ActualWidth;
                StoryboardToRight.Begin();
            }
        }
예제 #2
0
 public void StartToRight()
 {
     this.rightStartValue.Value = (this.RenderTransform as CompositeTransform).TranslateX;
     this.rightEndValue.Value   = this.ActualWidth;
     StoryboardToRight.Begin();
 }