示例#1
0
		protected override void AddAttributesToElement (ScriptTextWriter writer)
		{
			base.AddAttributesToElement (writer);

			if (Property != "")
				writer.WriteAttributeString ("property", Property);
			if (Value != "")
				writer.WriteAttributeString ("value", Value);
		}
示例#2
0
		protected override void AddAttributesToElement (ScriptTextWriter writer)
		{
			base.AddAttributesToElement (writer);

			if (CssClass != "")
				writer.WriteAttributeString ("cssClass", CssClass);

			if (ClientID != null && ClientID != "")
				writer.WriteAttributeString ("targetElement", ClientID);
		}
示例#3
0
        protected override void AddAttributesToElement(ScriptTextWriter writer)
        {
            base.AddAttributesToElement(writer);

            if (CssClass != "")
            {
                writer.WriteAttributeString("cssClass", CssClass);
            }

            if (ClientID != null && ClientID != "")
            {
                writer.WriteAttributeString("targetElement", ClientID);
            }
        }
示例#4
0
		protected override void AddAttributesToElement (ScriptTextWriter writer)
		{
			base.AddAttributesToElement (writer);

			if (Method != "")
				writer.WriteAttributeString ("method", Method);
		}
		protected override void AddAttributesToElement (ScriptTextWriter writer)
		{
			base.AddAttributesToElement (writer);

			foreach (string prop in valueProperties.Keys)
				writer.WriteAttributeString (prop, (string)valueProperties[prop]);
		}
示例#6
0
 protected virtual void AddAttributesToElement(ScriptTextWriter writer)
 {
     if (ID != null && ID != "")
     {
         writer.WriteAttributeString("id", ID);
     }
 }
示例#7
0
		protected override void AddAttributesToElement (ScriptTextWriter writer)
		{
			base.AddAttributesToElement (writer);

			if (Target != "")
				writer.WriteAttributeString ("target", Target);
		}
示例#8
0
        protected override void AddAttributesToElement(ScriptTextWriter writer)
        {
            base.AddAttributesToElement(writer);

            foreach (string prop in valueProperties.Keys)
            {
                writer.WriteAttributeString(prop, (string)valueProperties[prop]);
            }
        }
示例#9
0
文件: Action.cs 项目: stanasse/olive
        protected override void AddAttributesToElement(ScriptTextWriter writer)
        {
            base.AddAttributesToElement(writer);

            if (Target != "")
            {
                writer.WriteAttributeString("target", Target);
            }
        }
示例#10
0
        protected override void AddAttributesToElement(ScriptTextWriter writer)
        {
            base.AddAttributesToElement(writer);

            if (Method != "")
            {
                writer.WriteAttributeString("method", Method);
            }
        }
示例#11
0
        protected override void AddAttributesToElement(ScriptTextWriter writer)
        {
            base.AddAttributesToElement(writer);

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

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

            if (Value != "")
            {
                writer.WriteAttributeString("value", Value);
            }
        }
示例#12
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
			}
				
		}
示例#13
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
		}
示例#14
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();
        }
示例#15
0
		public void RenderHandlers (ScriptTextWriter writer)
		{
			writer.WriteAttributeString (Name, Handler);
		}
示例#16
0
		protected virtual void AddAttributesToElement (ScriptTextWriter writer)
		{
			if (ID != null && ID != "")
				writer.WriteAttributeString ("id", ID);
		}
示例#17
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 ();
		}
示例#18
0
 public void RenderHandlers(ScriptTextWriter writer)
 {
     writer.WriteAttributeString(Name, Handler);
 }