Files
docs-desktop/dotnet-desktop-guide/framework/wpf/controls/how-to-animate-a-borderthickness-value.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

1.7 KiB

title, ms.date, dev_langs, helpviewer_keywords, ms.assetid
title ms.date dev_langs helpviewer_keywords ms.assetid
How to: Animate a BorderThickness Value 03/30/2017
csharp
vb
border thickness [WPF], animating changes to
animation [WPF], changes to border thickness
fd021978-f74b-4e7b-a7f7-3987dcad9e0f

How to: Animate a BorderThickness Value

This example shows how to animate changes to the thickness of a border by using the xref:System.Windows.Media.Animation.ThicknessAnimation class.

Example

The following example animates the thickness of a border by using xref:System.Windows.Media.Animation.ThicknessAnimation. The example uses the xref:System.Windows.Controls.Border.BorderThickness%2A property of xref:System.Windows.Controls.Border.

[!code-csharpBasicAnimations_snip#ThicknessAnimationWholePage] [!code-vbBasicAnimations_snip#ThicknessAnimationWholePage]

For the complete sample, see Animation Example Gallery.

See also