public XamlSchemaContextSettings(XamlSchemaContextSettings settings)
 {
     if (settings != null)
     {
         this.SupportMarkupExtensionsWithDuplicateArity = settings.SupportMarkupExtensionsWithDuplicateArity;
         this.FullyQualifyAssemblyNamesInClrNamespaces = settings.FullyQualifyAssemblyNamesInClrNamespaces;
     }
 }
		public XamlSchemaContextSettings (XamlSchemaContextSettings settings)
		{
			// null is allowed.
			var s = settings;
			if (s == null)
				return;
			FullyQualifyAssemblyNamesInClrNamespaces = s.FullyQualifyAssemblyNamesInClrNamespaces;
			SupportMarkupExtensionsWithDuplicateArity = s.SupportMarkupExtensionsWithDuplicateArity;
		}
Пример #3
0
		public void CopyConstructor ()
		{
			var s = new XamlSchemaContextSettings ();
			s.FullyQualifyAssemblyNamesInClrNamespaces = true;
			s.SupportMarkupExtensionsWithDuplicateArity = true;
			s = new XamlSchemaContextSettings (s);
			Assert.IsTrue (s.FullyQualifyAssemblyNamesInClrNamespaces, "#1");
			Assert.IsTrue (s.SupportMarkupExtensionsWithDuplicateArity, "#2");
		}
        public XamlSchemaContextSettings(XamlSchemaContextSettings settings)
        {
            // null is allowed.
            var s = settings;

            if (s == null)
            {
                return;
            }
            FullyQualifyAssemblyNamesInClrNamespaces  = s.FullyQualifyAssemblyNamesInClrNamespaces;
            SupportMarkupExtensionsWithDuplicateArity = s.SupportMarkupExtensionsWithDuplicateArity;
        }
Пример #5
0
        private static XamlSchemaContext GetSchemaContext()
        {
            // System.Xaml and WindowsBase
            Assembly[] assemblies = new Assembly[]
            { typeof(XamlLanguage).Assembly, typeof(MarkupExtension).Assembly };
            XamlSchemaContextSettings settings =
                new XamlSchemaContextSettings {
                SupportMarkupExtensionsWithDuplicateArity = true
            };
            XamlSchemaContext result = new XamlSchemaContext(assemblies, settings);

            return(result);
        }
Пример #6
0
		public XamlSchemaContext (IEnumerable<Assembly> referenceAssemblies, XamlSchemaContextSettings settings)
		{
			if (referenceAssemblies != null)
				reference_assemblies = new List<Assembly> (referenceAssemblies);
#if !NET_2_1
			else
				AppDomain.CurrentDomain.AssemblyLoad += OnAssemblyLoaded;
#endif

			if (settings == null)
				return;

			FullyQualifyAssemblyNamesInClrNamespaces = settings.FullyQualifyAssemblyNamesInClrNamespaces;
			SupportMarkupExtensionsWithDuplicateArity = settings.SupportMarkupExtensionsWithDuplicateArity;
		}
Пример #7
0
        public XamlSchemaContext(IEnumerable <Assembly> referenceAssemblies, XamlSchemaContextSettings settings)
        {
            if (referenceAssemblies != null)
            {
                reference_assemblies = new List <Assembly>(referenceAssemblies);
            }

            /*else
             *      AppDomain.CurrentDomain.AssemblyLoad += OnAssemblyLoaded;*/

            if (settings == null)
            {
                return;
            }

            FullyQualifyAssemblyNamesInClrNamespaces  = settings.FullyQualifyAssemblyNamesInClrNamespaces;
            SupportMarkupExtensionsWithDuplicateArity = settings.SupportMarkupExtensionsWithDuplicateArity;
            InvokerOptions = settings.InvokerOptions;
        }
Пример #8
0
		public XamlSchemaContext (XamlSchemaContextSettings settings)
			: this (null, settings)
		{
		}
 public WpfSharedBamlSchemaContext(XamlSchemaContextSettings settings)
     :base(settings) 
 {
     Initialize(); 
 } 
Пример #10
0
 // V3 Rules are:
 //  Simple Collection rules: We only lookup IList & IDictionary (no add methods) (The MarkupCompiler doesn't support this)
 //  No Deferring Loader lookup on XamlMember (The MarkupCompiler doesn't support this)
 public WpfSharedXamlSchemaContext(XamlSchemaContextSettings settings, bool useV3Rules) : base(settings)
 {
     _useV3Rules = useV3Rules;
 }
 public TypeDescriptorSchemaContext(XamlSchemaContextSettings settings)
     : base(settings)
 {
 }
Пример #12
0
 private static XamlSchemaContext GetSchemaContext ()
 {
     Assembly[] referenceAssemblies = new Assembly[] { typeof(System.Xaml.XamlLanguage).Assembly, typeof(MarkupExtension).Assembly };
     XamlSchemaContextSettings settings = new XamlSchemaContextSettings {
         SupportMarkupExtensionsWithDuplicateArity = true
     };
     return new XamlSchemaContext(referenceAssemblies, settings);
 }
Пример #13
0
 internal static XamlSchemaContextSettings CreateSchemaContextSettings()
 {
     XamlSchemaContextSettings xscSettings = new XamlSchemaContextSettings(); 
     xscSettings.SupportMarkupExtensionsWithDuplicateArity = true;
     return xscSettings; 
 } 
Пример #14
0
 private static WpfSharedXamlSchemaContext CreateXamlSchemaContext(bool useV3Rules)
 {
     XamlSchemaContextSettings settings = new XamlSchemaContextSettings(); 
     settings.SupportMarkupExtensionsWithDuplicateArity = true;
     return new WpfSharedXamlSchemaContext(settings, useV3Rules); 
 } 
Пример #15
0
 public XamlSchemaContext (IEnumerable<Assembly> referenceAssemblies, XamlSchemaContextSettings settings) : base(referenceAssemblies, settings)
 {}
Пример #16
0
 public XamlSchemaContext (XamlSchemaContextSettings settings) : base(settings)
 {}
Пример #17
0
 public XamlSchemaContext(XamlSchemaContextSettings settings)
     : this(null, settings)
 {
 }
Пример #18
0
		public void DefaultValues ()
		{
			var s = new XamlSchemaContextSettings ();
			Assert.IsFalse (s.FullyQualifyAssemblyNamesInClrNamespaces, "#1");
			Assert.IsFalse (s.SupportMarkupExtensionsWithDuplicateArity, "#2");
		}