Beispiel #1
0
        /// <summary>
        /// Liste aller Datenbindungen von Steuerelementen in der Spalte an den Feldwert
        /// </summary>
        //protected List<DataBind.BindingBase> DataBindings = new List<DataBind.BindingBase>();

        //protected void AddBinding(DataBind.BindingBase binding)
        //{
        //    DataBindings.Add(binding);
        //}

        //public DataBind.BindingBase[] Bindings
        //{
        //    set
        //    {
        //        DataBindings.AddRange(value);
        //    }
        //}

        public void InstantiateIn(Control container)
        {
            if (container is WebControl)
            {
                var webCtrl = container as WebControl;
                //webCtrl.Style.Add(HtmlTextWriterStyle.Padding, "0");
                //webCtrl.Style.Add(HtmlTextWriterStyle.TextAlign, "left");
                //webCtrl.Style.Add(HtmlTextWriterStyle.VerticalAlign, "top");

                webCtrl.CssClass = CssClassFrame;
                if (StyleFrame != null)
                {
                    webCtrl.Attributes.Add("style", StyleFrame.ToString());
                }

                CreateContent(container.NamingContainer, container.Controls);
            }
            else
            {
                // Rahmen definieren
                var divFrame = new mkoIt.Asp.HtmlCtrl.DIV();
                divFrame.CssClassName = CssClassFrame;
                divFrame.CssStyleBld  = StyleFrame;
                container.Controls.Add(divFrame);

                // Inhalt aufbauen
                CreateContent(container.NamingContainer, divFrame.Controls);
            }
        }
        public void InstantiateIn(Control container)
        {
            // Rahmen definieren
            var divFrame = new mkoIt.Asp.HtmlCtrl.DIV();

            divFrame.CssClassName = CssClassFrame;
            divFrame.CssStyleBld  = StyleFrame;
            container.Controls.Add(divFrame);

            // Inhalt aufbauen
            CreateContent(container.NamingContainer, divFrame.Controls);
        }