Crash when viewing XAML

Oct 10, 2008 at 2:26 AM
First, the control works GREAT!!!

The only problem I'm having with the latest source code, is that it crashes every time I view the XAML.

I currently never look at the XAML in Visual Studio, unless I comment out the control.
Oct 20, 2008 at 8:55 PM
The Visual Studio XAML Designer (Cider) is pretty bad.  It has crashed on me with just trivial XAML.  This case may be different though because the control hooks into the WndProc and probably can't find it.

Try using this snippet in the WPF control (ie MediaUriElement) before the media source is changed:

            if (System.ComponentModel.DesignerProperties.GetIsInDesignMode(this))
            /* else set the media source and create the graph in the player */