I have a panel which contains 3 custom controls. Now during runtime I only have only two of them visible at any given point in time i.e either top two or bottom two controls keeping the middle control visible at all times.
Hence, when top control is made collapsed or invisible the middle control is moved up and is shown as the top control and if bottom control is made collapsed then middle control is at the bottom.
So as for my problem I wish to animate the middle control either moving up or down. In other words animate when middle control has its location changed. Due to other controls have their visibility modified.
Could this be achieved in Wpf ? If yes then any suggestions as to how it can be achieved?
I'm using c#.
Thanks.
Edit:
Reference image depicting as to what i'm trying to achieve:
Trying to animate panel B (in green) moving up and down when either panel A (in red) or panel C (in blue) have their visibility changed.