DoubleAnimation Crashes XAMLPad (MayCTP)

Has anyone experienced a crash with XAMLPad (I have not tried creating a complete app yet) where by if I have to following:

<settertimeline path=”(MenuItem.Width)” name="Timeline”>
<doubleanimation autoreverse="True” duration="0:0:0.5” to="150” from="100”>
</settertimeline>

And I remove the “From” Attribute it causes XAMLPad to crash.

<settertimeline path=”(MenuItem.Width)” name="Timeline”>
<doubleanimation autoreverse="True” duration="0:0:0.5” to="150”>
</settertimeline>

This timeline is used to do a basic animation of the width on a menu item. I am not including the “From” attribute because I want the default value of the MenuItem’s width to be the start value. Is this the correct thing to do? Some examples that I have seen say this is possible.

Context: The Timeline is within a Style on HeaderTemplates DataTemplate Element (because I am cusom drawing the control)

Example XAML can be found at http://www.kinlan.co.uk/sample_sources/XAMLAnimationCrash.xaml

Picture of me smiling.

Paul Kinlan

I lead the Chrome Developer Relations team at Google.

We want people to have the best experience possible on the web without having to install a native app or produce content in a walled garden.

Our team tries to make it easier for developers to build on the web by supporting every Chrome release, creating great content to support developers on web.dev, contributing to MDN, helping to improve browser compatibility, and some of the best developer tools like Lighthouse, Workbox, Squoosh to name just a few.

RSS Github Medium