--- title: "How to: Animate a BorderThickness Value" ms.date: "03/30/2017" dev_langs: - "csharp" - "vb" helpviewer_keywords: - "border thickness [WPF], animating changes to" - "animation [WPF], changes to border thickness" ms.assetid: 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 class. ## Example The following example animates the thickness of a border by using . The example uses the property of . [!code-csharp[BasicAnimations_snip#ThicknessAnimationWholePage](~/samples/snippets/csharp/VS_Snippets_Wpf/BasicAnimations_snip/CSharp/ThicknessAnimationExample.cs#thicknessanimationwholepage)] [!code-vb[BasicAnimations_snip#ThicknessAnimationWholePage](~/samples/snippets/visualbasic/VS_Snippets_Wpf/BasicAnimations_snip/VisualBasic/ThicknessAnimationExample.vb#thicknessanimationwholepage)] For the complete sample, see [Animation Example Gallery](https://github.com/Microsoft/WPF-Samples/tree/master/Animation/AnimationExamples). ## See also - - - - [Animation Overview](../graphics-multimedia/animation-overview.md) - [Animation and Timing How-to Topics](../graphics-multimedia/animation-and-timing-how-to-topics.md) - [Animate the Thickness of a Border by Using Key Frames](../graphics-multimedia/how-to-animate-the-thickness-of-a-border-by-using-key-frames.md)