Forum Xamarin.Forms


The Xamarin Forums have officially moved to the new Microsoft Q&A experience. Microsoft Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

To create new threads and ask questions head over to Microsoft Q&A for .NET and get involved today.

Can't use storyboard animation in xaml

oliver1oliver1 Member ✭✭

I'm trying to animate a property using a storyboard. I'm basing this off a tutorial article on the official docs website.

However storyboard and beginstoryboard are not recognized in my xaml file. For example if I copy paste

    <Button Name="myWidthAnimatedButton"
            Height="30" Width="200" HorizontalAlignment="Left">
            A Button   

              <!-- Animates the width of the first button 
                   from 200 to 300. -->         
              <EventTrigger RoutedEvent="Button.Click">
                    <DoubleAnimation Storyboard.TargetName="myWidthAnimatedButton"
                      From="200" To="300" Duration="0:0:3" />

It won't build and I'll get an error:
Type BeginStoryboard not found in xmlns ht tp://xa marin .c om/sche mas/2014/forms ResponderApp.iOS


Sign In or Register to comment.