I have a StackPanel with UserControls as the children. I would like to apply a Storyboard animation which increases the height of the children from 0 to 100 in a second which creates a smooth slide down animation. This will be called for when a new child is added to the StackPanel – StackPanel1.children.Add(usercontrol1). The StackPanel children are UserControls so I do not want to use DataTemplates. Below is an example layout of what I mean.

Could someone please help me create this as I have no idea how to make it. Thank you.
Well, that’s more or less a copy paste from the link written in the comment above.
First, you need to create your control (let’s say usercontrol1) and give it a unique name for the storyboard to reference it.
EDIT: Below is a code of a simple application that works:
XAML:
and code behind: