Clickevent handlers that we will use in order to achieve our so desired effect:
bunifuButton1, we call the
ShowSyncmethod that performs the transition applied on the control given by the first parameter.
booleanflag called parallel that we can use if we want our transition to be rendered in parallel for efficiency purposes.
bunifuButton2, we set the
Visibleproperty of the Bunifu Card control to
false, because we want to hide it.
MaxAnimationTimewas elapsed, then it will stop and the control will be rendered at its final state