public PortableXamlXamlService() { _readerSettings = new XamlXmlReaderSettings() { LocalAssembly = this.GetType().Assembly, }; _readerSettings.AddNamespaces(this.GetType().Assembly); _readerSettings.AddNamespaces(typeof(View.Schemas.S2ViewDefinitions).Assembly); }
public void DefaultNamespaceFromAttributes() { #if PCL var s = new XamlXmlReaderSettings(); s.AddNamespaces(GetType()); var testNamespaces = new Dictionary <string, string> { { "test", "http://schemas.example.com/test" } }; CollectionAssert.AreEquivalent(s.DefaultNamespaces, testNamespaces); #else Assert.Ignore("Not supported in System.Xaml"); #endif }