mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-06 23:43:07 +02:00
* 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
20 lines
948 B
Markdown
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>
|