Open tinowild opened 8 years ago
You need set the Source property again.
Setting image.Source = player.VideoSource;
in Button_Click_2 after container.Children.Add(image);
doesn't work for me. The only thing that worked is to replace the whole instance of the ThreadSeparatedImage.
When I show the Video in a ThreadSeparatedImage I can't remove the ThreadSeparatedImage from the VisualTree, otherwise the Video isn't shown when I move it back again.
Example code (Press Clear to remove the ThreadSeparatedImage and Add to add it back again):
XAML
Code