Silverlight: How to Use VideoBrush

A VideoBrush paints an area with video. This topic describes how to use the Silverlight VideoBrush to paint shapes and text with video. It also provides examples that show how to interactively control a VideoBrush.

A VideoBrush is a type of Brush object similar to a LinearGradientBrush or an ImageBrush. However, instead of painting an area with a gradient or an image, it paints an area with video content. This video content is provided by a MediaElement. As with other brush types, you can use a VideoBrush to paint the Fill of a Rectangle, the Background of a Canvas, or the Foreground of a TextBlock. For more information about VideoBrush, see msdn.

To paint an area with video, you create a MediaElement and a VideoBrush and apply that VideoBrush to the object that you want to paint (see the following example).

[silverlight: http://blog.arvixe.com/wp-content/uploads/2012/08/BlogArvixeCom.UserNT.VideoBrush.xap, 570, 300]

Source Code

Looking for quality Silverlight Hosting? Look no further than Arvixe Web Hosting!

Tags: , , , | Posted under 3rd Party Software, Programming/Coding | RSS 2.0

One Comment on Silverlight: How to Use VideoBrush

  1. Saga says:

    Perfect, thanks for info :-)

Leave a Reply

Your email address will not be published. Required fields are marked *


8 − 3 =

You may use these HTML tags and attributes: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>