Esempio n. 1
0
		protected override void RenderScriptTagContents (ScriptTextWriter writer)
		{
			base.RenderScriptTagContents (writer);

			if (behaviors != null && behaviors.Count > 0) {
				writer.WriteStartElement ("behaviors");
				foreach (Behavior b in behaviors) {
					b.RenderScript (writer);
				}
				writer.WriteEndElement (); // behaviors
			}
		}
Esempio n. 2
0
 protected virtual void RenderScriptTagContents(ScriptTextWriter writer)
 {
     if (bindings != null && bindings.Count > 0)
     {
         writer.WriteStartElement("bindings");
         foreach (Binding b in bindings)
         {
             b.RenderScript(writer);
         }
         writer.WriteEndElement();                  // bindings
     }
 }
Esempio n. 3
0
        protected override void RenderScriptTagContents(ScriptTextWriter writer)
        {
            base.RenderScriptTagContents(writer);

            if (behaviors != null && behaviors.Count > 0)
            {
                writer.WriteStartElement("behaviors");
                foreach (Behavior b in behaviors)
                {
                    b.RenderScript(writer);
                }
                writer.WriteEndElement();                  // behaviors
            }
        }
Esempio n. 4
0
        protected override void RenderScriptTagContents(ScriptTextWriter writer)
        {
            base.RenderScriptTagContents(writer);

            foreach (string colName in collections.Keys)
            {
                ScriptComponentCollection col = (ScriptComponentCollection)collections[colName];
                writer.WriteStartElement(colName);
                foreach (IScriptComponent c in col)
                {
                    c.RenderScript(writer);
                }
                writer.WriteEndElement();                  // colName
            }
        }
Esempio n. 5
0
        public void RenderActions(ScriptTextWriter writer)
        {
            if (Actions.Count == 0)
            {
                return;
            }

            writer.WriteStartElement(Name);

            foreach (Action a in Actions)
            {
                a.RenderAction(writer);
            }

            writer.WriteEndElement();
        }
Esempio n. 6
0
        public void RenderScript(ScriptTextWriter writer)
        {
            writer.WriteStartElement("binding");

            if (Automatic == false)
            {
                writer.WriteAttributeString("automatic", Automatic.ToString());
            }

            if (DataContext != "")
            {
                writer.WriteAttributeString("dataContext", DataContext);
            }

            if (DataPath != "")
            {
                writer.WriteAttributeString("dataPath", DataPath);
            }

            if (Direction != BindingDirection.In)
            {
                writer.WriteAttributeString("direction", Direction.ToString());
            }

            if (ID != "")
            {
                writer.WriteAttributeString("id", ID);
            }

            if (Property != "")
            {
                writer.WriteAttributeString("property", Property);
            }

            if (PropertyKey != "")
            {
                writer.WriteAttributeString("propertyKey", PropertyKey);
            }

            if (TransformerArgument != "")
            {
                writer.WriteAttributeString("transformerArgument", TransformerArgument);
            }

            writer.WriteEndElement();
        }
Esempio n. 7
0
		protected override void RenderScriptTagContents (ScriptTextWriter writer)
		{
			base.RenderScriptTagContents (writer);

			if (AutoCompletionServiceMethod != ""
			    && AutoCompletionServiceUrl != "") {
				writer.WriteStartElement ("behaviors");
				writer.WriteStartElement ("autoComplete");
				writer.WriteAttributeString ("serviceURL", AutoCompletionServiceUrl);
				writer.WriteAttributeString ("serviceMethod", AutoCompletionServiceMethod);
				if (AutoCompletionMinimumPrefixLength != 0)
					writer.WriteAttributeString ("minimumPrefixLength", AutoCompletionMinimumPrefixLength.ToString());

				writer.WriteAttributeString ("completionList", ID + "__autocomplete"); // XXX ?

				writer.WriteEndElement (); // autoComplete
				writer.WriteEndElement (); // behaviors
			}
				
		}
		protected override void RenderScriptTagContents (ScriptTextWriter writer)
		{
			base.RenderScriptTagContents (writer);

			foreach (string colName in collections.Keys) {
				ScriptComponentCollection col = (ScriptComponentCollection)collections[colName];
				writer.WriteStartElement (colName);
				foreach (IScriptComponent c in col)
					c.RenderScript (writer);
				writer.WriteEndElement (); // colName
			}
		}
Esempio n. 9
0
		public void RenderActions (ScriptTextWriter writer)
		{
			if (Actions.Count == 0)
				return;

			writer.WriteStartElement (Name);

			foreach (Action a in Actions) {
				a.RenderAction (writer);
			}

			writer.WriteEndElement ();
		}
Esempio n. 10
0
		protected virtual void RenderScriptTagContents (ScriptTextWriter writer)
		{
			if (bindings != null && bindings.Count > 0) {
				writer.WriteStartElement ("bindings");
				foreach (Binding b in bindings) {
					b.RenderScript (writer);
				}
				writer.WriteEndElement (); // bindings
			}
		}
Esempio n. 11
0
		protected virtual void RenderScriptEndTag (ScriptTextWriter writer)
		{
			writer.WriteEndElement ();
		}
Esempio n. 12
0
		public void RenderScript (ScriptTextWriter writer)
		{
			writer.WriteStartElement ("binding");

			if (Automatic == false)
				writer.WriteAttributeString ("automatic", Automatic.ToString());

			if (DataContext != "")
				writer.WriteAttributeString ("dataContext", DataContext);

			if (DataPath != "")
				writer.WriteAttributeString ("dataPath", DataPath);

			if (Direction != BindingDirection.In)
				writer.WriteAttributeString ("direction", Direction.ToString());

			if (ID != "")
				writer.WriteAttributeString ("id", ID);

			if (Property != "")
				writer.WriteAttributeString ("property", Property);

			if (PropertyKey != "")
				writer.WriteAttributeString ("propertyKey", PropertyKey);

			if (TransformerArgument != "")
				writer.WriteAttributeString ("transformerArgument", TransformerArgument);

			writer.WriteEndElement ();
		}
Esempio n. 13
0
 protected virtual void RenderScriptEndTag(ScriptTextWriter writer)
 {
     writer.WriteEndElement();
 }
Esempio n. 14
0
		protected override void RenderScriptTagContents (ScriptTextWriter writer)
		{
			base.RenderScriptTagContents (writer);

			writer.WriteStartElement ("layoutTemplate");
			writer.WriteStartElement ("template");
			writer.WriteAttributeString ("layoutElement", ID + "_layoutTemplate"); // XXX ?
			writer.WriteEndElement (); // template
			writer.WriteEndElement (); // layoutTemplate

			writer.WriteStartElement ("itemTemplate");
			writer.WriteEndElement (); // itemTemplate
		}