I need to move an instance of the SMF from one grid to another one by clicking on a button.
When the application is starting, the SMFPlayer is playing a video in grid 1. When clicking on the button, I'm instanciating a new SMFPlayer object and "copy" the original like this :
SMFPlayer _smfPlayerObjTyped = theOriginalSMFPlayer;
Then I'm removing the original from grid one and copy the copied SMFPlayer (smfPlayerObjTyped) into grid 2, just like this :
That's working well : the player is moving from one grid to another....except that it stopped. And impossible to catch events like MediaFailed or Playstate.
If we do the same with any kind of content like textblock or image, there is no problem.
Is there a way to prevent this behaviour, or better, is there a way for moving smoothly content element from one point to another in the application design without using this method?
Thanks a lot