Ask a questionAsk a question
 

AnswerVideo Brush Not Found

  • Tuesday, November 03, 2009 5:29 PMANKIT_DBZ Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I am trying to use a video brush for my TextBlock, but i am getting the following errors

    The tag 'VideoBrush' does not exist in XML namespace 'http://schemas.microsoft.com/winfx/2006/xaml/presentation'
    The type 'VideoBrush' was not found. Verify that you are not missing an assembly reference and that all referenced assemblies have been built

    Please tell me how to rectify it, thanks.

Answers

  • Wednesday, November 04, 2009 1:53 AMBrendan Clark - MSFT Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    VideoBrush is a feature that's only available in Silverlight, there is no WPF equivalent.  You can work around the issue by using a MediaElement to play your video, and hosting that inside a VisualBrush instead, or creating a VideoDrawing and putting that inside a DrawingBrush.

All Replies

  • Wednesday, November 04, 2009 1:53 AMBrendan Clark - MSFT Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    VideoBrush is a feature that's only available in Silverlight, there is no WPF equivalent.  You can work around the issue by using a MediaElement to play your video, and hosting that inside a VisualBrush instead, or creating a VideoDrawing and putting that inside a DrawingBrush.