This is very urgent for me to solve this. Currently I am working on an project which has an requirement like If you click on button the usercontrol which is added in stackpanel should flip not whole grid. This is the following code where I am getting error
Object reference no set to instance of object.
FlipTransition transition = Resources["FlipTransition"] as FlipTransition;
transition.Rotation = Direction.LeftToRight;
TransitionPresenter TransitionContainer = new TransitionPresenter();
TransitionContainer.Transition = transition;
StackPanel sp = grdMain.Children as StackPanel; // I am getting this stackpanel
I have tried
but no effect.
please suggest me It is very urgent