locked
Media Element - Rounded Edges RRS feed

  • Question

  • Hi,

    Is there any posssible way of setting rounded edges to a media element?  I have a media element and need to set a rounded edge of 5px..

     

    Thanks

    Sunday, November 1, 2009 5:58 PM

Answers

  • You should be able to apply a clipping geometry to the media element just like any other element.

    Something like this:

     

                <MediaElement>
                    <MediaElement.Clip>
                        <RectangleGeometry Rect="0,0,100,100" RadiusX="5" RadiusY="5"></RectangleGeometry>
                    </MediaElement.Clip>
                </MediaElement>
     Where the Rect property is the dimensions of your MediaElement
    Sunday, November 1, 2009 7:56 PM