MediaElement background color RRS feed

  • Question

  • Hi,

    is there a way to change the backgroud color of a MediaElement?
    I have set MediaElement Width to 640 and Height to 480, but some videos are in 16:9 instead of 4:3 and I would like to have a white or transparent background.

    Is it possible?

    Friday, December 13, 2013 9:21 AM


  • MediaElement doesn't have Bacground, you should use Border element to do the same. Check out below given code.

    <Grid Width="640" Height="480">
         <Border Background="White" />
         <MediaElement Source="ms-appx:///LadyWashington.mp4" />

    Friday, December 13, 2013 10:12 AM