Ejemplo n.º 1
0
		protected override void InitializeTypeDescriptor (ScriptTypeDescriptor typeDescriptor)
		{
			base.InitializeTypeDescriptor (typeDescriptor);

			string[] args = new string[1];
			args[0] = "className";

			typeDescriptor.AddMethod (new ScriptMethodDescriptor ("addCssClass", args));
			typeDescriptor.AddMethod (new ScriptMethodDescriptor ("focus"));
			typeDescriptor.AddMethod (new ScriptMethodDescriptor ("scrollIntoView"));
			typeDescriptor.AddMethod (new ScriptMethodDescriptor ("removeCssClass", args));
			typeDescriptor.AddMethod (new ScriptMethodDescriptor ("toggleCssClass", args));

			typeDescriptor.AddProperty (new ScriptPropertyDescriptor ("associatedElement", ScriptType.Object, true, ""));
			typeDescriptor.AddProperty (new ScriptPropertyDescriptor ("behaviors", ScriptType.Array, true, "Behaviors"));
			typeDescriptor.AddProperty (new ScriptPropertyDescriptor ("cssClass", ScriptType.String, false, "CssClass"));
			typeDescriptor.AddProperty (new ScriptPropertyDescriptor ("enabled", ScriptType.Boolean, false, "Enabled"));
			typeDescriptor.AddProperty (new ScriptPropertyDescriptor ("style", ScriptType.Object, true, ""));
			typeDescriptor.AddProperty (new ScriptPropertyDescriptor ("visible", ScriptType.Boolean, false, "Visible"));
			typeDescriptor.AddProperty (new ScriptPropertyDescriptor ("visibilityMode", ScriptType.Enum, false, "VisibilityMode"));
		}
Ejemplo n.º 2
0
        protected override void InitializeTypeDescriptor(ScriptTypeDescriptor typeDescriptor)
        {
            base.InitializeTypeDescriptor(typeDescriptor);

            string[] args = new string[1];
            args[0] = "className";

            typeDescriptor.AddMethod(new ScriptMethodDescriptor("addCssClass", args));
            typeDescriptor.AddMethod(new ScriptMethodDescriptor("focus"));
            typeDescriptor.AddMethod(new ScriptMethodDescriptor("scrollIntoView"));
            typeDescriptor.AddMethod(new ScriptMethodDescriptor("removeCssClass", args));
            typeDescriptor.AddMethod(new ScriptMethodDescriptor("toggleCssClass", args));

            typeDescriptor.AddProperty(new ScriptPropertyDescriptor("associatedElement", ScriptType.Object, true, ""));
            typeDescriptor.AddProperty(new ScriptPropertyDescriptor("behaviors", ScriptType.Array, true, "Behaviors"));
            typeDescriptor.AddProperty(new ScriptPropertyDescriptor("cssClass", ScriptType.String, false, "CssClass"));
            typeDescriptor.AddProperty(new ScriptPropertyDescriptor("enabled", ScriptType.Boolean, false, "Enabled"));
            typeDescriptor.AddProperty(new ScriptPropertyDescriptor("style", ScriptType.Object, true, ""));
            typeDescriptor.AddProperty(new ScriptPropertyDescriptor("visible", ScriptType.Boolean, false, "Visible"));
            typeDescriptor.AddProperty(new ScriptPropertyDescriptor("visibilityMode", ScriptType.Enum, false, "VisibilityMode"));
        }
Ejemplo n.º 3
0
        ScriptTypeDescriptor IScriptObject.GetTypeDescriptor()
        {
            ScriptTypeDescriptor d = new ScriptTypeDescriptor(this);

            d.AddEvent(new ScriptEventDescriptor("transform", false));

            d.AddMethod(new ScriptMethodDescriptor("evaluateIn", new string[0]));
            d.AddMethod(new ScriptMethodDescriptor("evaluateOut", new string[0]));

            d.AddProperty(new ScriptPropertyDescriptor("automatic", ScriptType.Boolean, false, "Automatic"));
            d.AddProperty(new ScriptPropertyDescriptor("dataContext", ScriptType.Object, false, "DataContext"));
            d.AddProperty(new ScriptPropertyDescriptor("dataPath", ScriptType.String, false, "DataPath"));
            d.AddProperty(new ScriptPropertyDescriptor("direction", ScriptType.Enum, false, "Direction"));
            d.AddProperty(new ScriptPropertyDescriptor("id", ScriptType.String, false, "ID"));
            d.AddProperty(new ScriptPropertyDescriptor("property", ScriptType.String, false, "Property"));
            d.AddProperty(new ScriptPropertyDescriptor("propertyKey", ScriptType.String, false, "PropertyKey"));
            d.AddProperty(new ScriptPropertyDescriptor("transformerArgument", ScriptType.String, false, "TransformerArgument"));

            d.Close();

            return(d);
        }
Ejemplo n.º 4
0
		ScriptTypeDescriptor IScriptObject.GetTypeDescriptor ()
		{
			ScriptTypeDescriptor d = new ScriptTypeDescriptor (this);

			d.AddEvent (new ScriptEventDescriptor ("transform", false));

			d.AddMethod (new ScriptMethodDescriptor ("evaluateIn", new string[0]));
			d.AddMethod (new ScriptMethodDescriptor ("evaluateOut", new string[0]));

			d.AddProperty (new ScriptPropertyDescriptor ("automatic", ScriptType.Boolean, false, "Automatic"));
			d.AddProperty (new ScriptPropertyDescriptor ("dataContext", ScriptType.Object, false, "DataContext"));
			d.AddProperty (new ScriptPropertyDescriptor ("dataPath", ScriptType.String, false, "DataPath"));
			d.AddProperty (new ScriptPropertyDescriptor ("direction", ScriptType.Enum, false, "Direction"));
			d.AddProperty (new ScriptPropertyDescriptor ("id", ScriptType.String, false, "ID"));
			d.AddProperty (new ScriptPropertyDescriptor ("property", ScriptType.String, false, "Property"));
			d.AddProperty (new ScriptPropertyDescriptor ("propertyKey", ScriptType.String, false, "PropertyKey"));
			d.AddProperty (new ScriptPropertyDescriptor ("transformerArgument", ScriptType.String, false, "TransformerArgument"));

			d.Close ();

			return d;
		}