0

A user drags the item to the right of the screen, and while they do so, I change the MainGrid's translate X to track the finger. Once they let go of the finger, the storyboard completes the drag by animating MainGrid's translate X to the final value.

Basically I would like to say "CURRENT!" as per below, but this is not valid xaml. Search msdn docs or the internet didn't help. Must be something simple, right?

                <VisualTransition To="Dismissed">
                    <Storyboard>
                        <DoubleAnimationUsingKeyFrames Storyboard.TargetName="MainGrid" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateX)">
                            <LinearDoubleKeyFrame KeyTime="0:0:0" Value="CURRENT!" />
                            <SplineDoubleKeyFrame KeySpline="0.1, 0.9, 0.2, 1" KeyTime="0:0:1.0" Value="385" />
                        </DoubleAnimationUsingKeyFrames>
                    </Storyboard>
                </VisualTransition>
swinefeaster
  • 2,525
  • 3
  • 30
  • 48
  • Not visualizing what you're after exactly, got some sort of an example? Do you just want to do something like [this](http://stackoverflow.com/questions/22817854/xaml-grid-visibility-transition/22819145#22819145)? – Chris W. Jul 20 '16 at 19:46
  • @swinefeaster you are looking to bind to something, but this can create issues due to freezing. I bound to the current value of width in this answer but it was tricky. http://stackoverflow.com/a/37708885/73804 – patrick Jul 20 '16 at 20:55
  • updated question to clarify – swinefeaster Jul 20 '16 at 23:13

0 Answers0