Files
docs-desktop/dotnet-desktop-guide/framework/wpf/graphics-multimedia/how-to-animate-in-a-controltemplate.md
T
Andy De George da363692ff Initial WPF content migrated (#17)
* Reset branch for WPF changes

* Convert BMP to PNG; fix link-out-of-scope err

* Add snippets for WPF... 6794 files!!!!

* Add missing snippets

* update file updated between migration

* Fix paths to include

* update breadcrumb and toc

* fix index links

* fix index links

* fix index links

* fix markdown
2020-09-04 09:46:28 -07:00

20 lines
948 B
Markdown

---
title: "How to: Animate in a ControlTemplate"
ms.date: "03/30/2017"
helpviewer_keywords:
- "animation [WPF], ControlTemplates"
- "ControlTemplates [WPF], animating within"
ms.assetid: 97abb5d9-4dc7-4085-a011-54bd8bcb497b
---
# How to: Animate in a ControlTemplate
This example shows how to use <xref:System.Windows.Media.Animation.Storyboard>, <xref:System.Windows.EventTrigger>, and <xref:System.Windows.Trigger> objects to animate within a <xref:System.Windows.Controls.ControlTemplate>.
## Example
[!code-xaml[AnimatePropertyStoryboards#GraphicsMMControlTemplateStoryboardExample](~/samples/snippets/xaml/VS_Snippets_Wpf/AnimatePropertyStoryboards/XAML/ControlTemplateStoryboardExample.xaml#graphicsmmcontroltemplatestoryboardexample)]
For more information about animating properties with storyboards, see [Storyboards Overview](storyboards-overview.md).
## See also
- <xref:System.Windows.Controls.ControlTemplate>