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 } }
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 } }
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 } }
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 } }
public void RenderActions(ScriptTextWriter writer) { if (Actions.Count == 0) { return; } writer.WriteStartElement(Name); foreach (Action a in Actions) { a.RenderAction(writer); } writer.WriteEndElement(); }
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(); }
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 } }
public void RenderActions (ScriptTextWriter writer) { if (Actions.Count == 0) return; writer.WriteStartElement (Name); foreach (Action a in Actions) { a.RenderAction (writer); } writer.WriteEndElement (); }
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 } }
protected virtual void RenderScriptEndTag (ScriptTextWriter writer) { writer.WriteEndElement (); }
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 (); }
protected virtual void RenderScriptEndTag(ScriptTextWriter writer) { writer.WriteEndElement(); }
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 }