Use http namespace references in XAML file with XamlParser
<p>Since I want to make my application as modular for technical support as possible, I'm trying to implement all views, except the main view containing them, of course, in external XAML files and load them at runtime.
I'm using this code:</p>

<pre><code>FileStream fileStream = new FileStream("SomeXaml.xaml", FileMode.Open);
DependencyObject dependencyObject = XamlReader.Load(fileStream) as DependencyObject;
</code></pre>

<p>Pretty simple, but works. The problem is, if my XAML has a namespace like that in it:</p>

<pre><code>xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
</code></pre>

<p>It won't recognize any controls of the dxg namespace. Using</p>

<pre><code>xmlns:dxg="clr-namespace:DevExpress.Xpf.Grid.LookUp;assembly=DevExpress.Xpf.Grid.v15.1"
</code></pre>

<p>however, solves the problem. Now it's really a pain in the ass to always define assembly namespaces, especially since some of them are split in various DLLs, while the http namespace would merge some of them, at least.
Is there a way to let my loose XAML recognize these http namespaces?</p>