Alpha Chanel (Chroma Key) video transparency

Jan 1, 2011 at 11:00 PM
Edited Jan 2, 2011 at 12:08 AM

Using a customized (derived) SMFPlayer and ColorKeyAlphaEffect Pixel Shader I can make the video transparent where it's green.
Test: added a background image before the <ContentControl x:Name="MediaPresenterElement" in generic.xaml and the background image is visible where the video is transparent.
Goal: I'd like to achieve the same result in my XAML.
Currently the SMFPlayer is not transparent. Any ideas?

<Grid x:Name="LayoutRoot" Background="Red">
    <local:CustomPlayer x:Name="player" />
</Grid>
Jan 2, 2011 at 12:04 AM
Edited Jan 3, 2011 at 5:26 PM

I am answering my own question :-). In generic.xaml made these changes:
Before:

<Grid x:Name="PlayerRoot" Background="Black"

After:

<Grid x:Name="PlayerRoot" Background="{TemplateBinding Background}"

My XAML:

<Grid x:Name="LayoutRoot" Background="Red">
  <local:CustomPlayer x:Name="player" Background="#00FFFFFF" />
</Grid>