mirror of
https://github.com/Stone-Red-Code/docs-desktop.git
synced 2026-09-07 16:06:07 +02:00
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
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
---
|
||||
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 <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-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
|
||||
|
||||
- <xref:System.Windows.Media.Animation.ThicknessAnimation>
|
||||
- <xref:System.Windows.Controls.Border.BorderThickness%2A>
|
||||
- <xref:System.Windows.Controls.Border>
|
||||
- [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)
|
||||
Reference in New Issue
Block a user