page flashing after using MediaPlayer inside a border control

Topics: Windows 8 Xaml
Oct 18, 2012 at 8:03 AM

Hi, I have just started UI designing in xaml. I have a MediaPlayer controller that is used to play an ism video from cloud.

I like to use border to style the video player. I saw that MediaPlayer has itself border property but it is not visible when I use it, Therefore I put the media player in <border> as you can see in the code. But after running the app the page that contains the video is flashing.
Anybody has an idea what is wrong?

 

 

<Border Background="#FF0A0909" Width="570" Height="330" BorderBrush="#FFDED5D5" BorderThickness="10" Margin="0,36,0,-36" Grid.Row="1" Grid.ColumnSpan="2" HorizontalAlignment="Center" VerticalAlignment="Center">

 

 <mmppf:MediaPlayer Name="player" Source="...../t.ism/manifest">

 

 < mmppf:MediaPlayer.Plugins >

 

    

 

 

 <adaptive:AdaptivePlugin 

/>      

 

 </mmppf:MediaPlayer.Plugins>

 

 

 

</mmppf:MediaPlayer >

 

</Border >