I have a SWF object embedded in a WindowsFormsHost control inside a WPF window.
I want to add a toolbar to a swf movie.
The problem with the code snippet that I have below is that when a new child is added to the host control (or the movie is loading, I have not figured out what else), the toolbar becomes invisible. It seems that the z-index swf is for some reason set to the top.
Here's what it looks like:
XAML:
<Grid Name="Player">
<WindowsFormsHost Name="host" Panel.ZIndex="0" />
<Grid Name="toolbar" Panel.ZIndex="1" Height="50"
VerticalAlignment="Bottom">
[play, pause, seek columns go here]
</Grid>
</Grid>
WITH#:
private void Window_Loaded(object sender, RoutedEventArgs e)
{
flash = new AxShockwaveFlashObjects.AxShockwaveFlash();
host.Child = flash;
flash.LoadMovie(0, [movie]);
}
Any understanding of this problem would be greatly appreciated.
Update: . Since no suitable answer has been posted, I posted my own solution below. I understand that this is more of a hack than a solution, so I am open to other suggestions.