Beispiel #1
0
        private void AddControlScripts(string typename, string ns, Assembly assembly)
        {
            var fullname = ns + "." + typename;
            var rtype = assembly.GetType(fullname);
            var ctype = new NativeTypeRef(this, rtype);

            AddDependencyObjectScripts(ctype);

            ctype.AddScriptReference(typeof(StockObjectRoot).Assembly, "Scripts.Control.js");

            if (typename == "ComboBox")
            {
                ctype.AddScriptReference(typeof(StockObjectRoot).Assembly, "Scripts.ItemsControl.js");
            }

            ctype.AddScriptReference(typeof(StockObjectRoot).Assembly, "Scripts." + typename + ".js");
        }
Beispiel #2
0
 private void AddControlScripts(Type type)
 {
     var ctype = new NativeTypeRef(this, type, true);
     ctype.AddScriptReference(typeof(StockObjectRoot).Assembly, "Scripts." + type.Name + ".js");
 }
Beispiel #3
0
        private void AddDependencyObjectScripts(NativeTypeRef ntype)
        {
            ntype.SetExternal();
            ntype.AddScriptReference(typeof(StockObjectRoot).Assembly, "Scripts.Delegate.js");
            ntype.AddScriptReference(typeof(StockObjectRoot).Assembly, "Scripts.ControlFactory.js");
            ntype.AddScriptReference(typeof(StockObjectRoot).Assembly, "Scripts.Binding.js");
            ntype.AddScriptReference(typeof(StockObjectRoot).Assembly, "Scripts.InputBinding.js");
            ntype.AddScriptReference(typeof(StockObjectRoot).Assembly, "Scripts.DependencyObject.js");
            ntype.AddScriptReference(typeof(StockObjectRoot).Assembly, "Scripts.Control.js");
            ntype.AddScriptReference(typeof(StockObjectRoot).Assembly, "Scripts.TemplateFactory.js");
            ntype.AddScriptReference(typeof(StockObjectRoot).Assembly, "Scripts.DataTypes.js");

            // TODO: does not belong here!
            ntype.AddScriptReference(typeof(StockObjectRoot).Assembly, "Scripts.TypeSystem.js");

            // TODO: neither do these.
            ntype.AddScriptReference(typeof(StockObjectRoot).Assembly, "Scripts.UserControl.js");
            ntype.AddScriptReference(typeof(StockObjectRoot).Assembly, "Scripts.PathControl.js");
            ntype.AddScriptReference(typeof(StockObjectRoot).Assembly, "Scripts.Converters.js");

        }
Beispiel #4
0
 private NativeTypeRef AddClassScripts(Type type)
 {
     var ctype = new NativeTypeRef(this, type, true);
     ctype.AddScriptReference(typeof(StockObjectRoot).Assembly, "Scripts." + type.Name + ".js");
     return ctype;
 }