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;
		}
Ejemplo n.º 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");
		}
Ejemplo n.º 4
0
        public XamlSchemaContextSettings(XamlSchemaContextSettings settings)
        {
            // null is allowed.
            var s = settings;

            if (s == null)
            {
                return;
            }
            FullyQualifyAssemblyNamesInClrNamespaces  = s.FullyQualifyAssemblyNamesInClrNamespaces;
            SupportMarkupExtensionsWithDuplicateArity = s.SupportMarkupExtensionsWithDuplicateArity;
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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;
		}
Ejemplo n.º 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;
        }
Ejemplo n.º 8
0
		public XamlSchemaContext (XamlSchemaContextSettings settings)
			: this (null, settings)
		{
		}
 public WpfSharedBamlSchemaContext(XamlSchemaContextSettings settings)
     :base(settings) 
 {
     Initialize(); 
 } 
Ejemplo n.º 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)
 {
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 13
0
 internal static XamlSchemaContextSettings CreateSchemaContextSettings()
 {
     XamlSchemaContextSettings xscSettings = new XamlSchemaContextSettings(); 
     xscSettings.SupportMarkupExtensionsWithDuplicateArity = true;
     return xscSettings; 
 } 
Ejemplo n.º 14
0
 private static WpfSharedXamlSchemaContext CreateXamlSchemaContext(bool useV3Rules)
 {
     XamlSchemaContextSettings settings = new XamlSchemaContextSettings(); 
     settings.SupportMarkupExtensionsWithDuplicateArity = true;
     return new WpfSharedXamlSchemaContext(settings, useV3Rules); 
 } 
Ejemplo n.º 15
0
 public XamlSchemaContext (IEnumerable<Assembly> referenceAssemblies, XamlSchemaContextSettings settings) : base(referenceAssemblies, settings)
 {}
Ejemplo n.º 16
0
 public XamlSchemaContext (XamlSchemaContextSettings settings) : base(settings)
 {}
Ejemplo n.º 17
0
 public XamlSchemaContext(XamlSchemaContextSettings settings)
     : this(null, settings)
 {
 }
Ejemplo n.º 18
0
		public void DefaultValues ()
		{
			var s = new XamlSchemaContextSettings ();
			Assert.IsFalse (s.FullyQualifyAssemblyNamesInClrNamespaces, "#1");
			Assert.IsFalse (s.SupportMarkupExtensionsWithDuplicateArity, "#2");
		}