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"); }
private void AddControlScripts(Type type) { var ctype = new NativeTypeRef(this, type, true); ctype.AddScriptReference(typeof(StockObjectRoot).Assembly, "Scripts." + type.Name + ".js"); }
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"); }
private NativeTypeRef AddClassScripts(Type type) { var ctype = new NativeTypeRef(this, type, true); ctype.AddScriptReference(typeof(StockObjectRoot).Assembly, "Scripts." + type.Name + ".js"); return ctype; }