WPF MediaElement source in C# 2010
- by Alex Farber
The sample from the book is compiled and executed successfully in VS2008. Project contains file Bear.wmw in the project directory. XAML:
MediaElement Source="Bear.wmv"
Build Action = Content, Copy to output directory = Copy always
In C# 2008 this file is shown in the window. In C# 2010 Express file is not shown. Output directory contains this…