BorderThickness can be animated by using the ‘ThicknessAnimation’ class.
The following example animates the thickness of a border by using the ThicknessAnimation. The example uses the ‘BorderThickness’ property of Border.
[XAML]
This example shows how to use the ThicknessAnimation to create
an animation on the BorderThickness property of a Border.