--- title: "How to: Trigger an Animation When a Property Value Changes" ms.date: "03/30/2017" helpviewer_keywords: - "animation [WPF], starting when property values change" - "triggering animation [WPF]" - "Storyboards [WPF], starting when property values change" ms.assetid: 12399c21-0300-4f4f-9e3a-d92d9907e5f5 --- # How to: Trigger an Animation When a Property Value Changes This example shows how to use a to start a when a property value changes. You can use a inside a , , or . ## Example The following example uses a to animate the of a when its property becomes `true`. [!code-xaml[AnimatePropertyStoryboards#PropertyTriggerExample](~/samples/snippets/xaml/VS_Snippets_Wpf/AnimatePropertyStoryboards/XAML/PropertyTriggerExample.xaml#propertytriggerexample)] Animations applied by property objects behave in a more complex fashion than animations or animations started using methods. They "handoff" with animations defined by other objects, but compose with and method-triggered animations. ## See also - - [Property Animation Techniques Overview](property-animation-techniques-overview.md) - [Storyboards Overview](storyboards-overview.md)