Ejemplo n.º 1
0
 public ButtonGroup AddButton(Button Element)
 {
     this.ContainerElements.Add(Element);
     return this;
 }
Ejemplo n.º 2
0
 private String CreateDropDownSimpleButton()
 {
     var group = new ButtonGroup(this.ViewContext);
     this.Component.Button.Behaviour = HtmlBehaviourType.Link;
     this.Component.Button.HtmlProperties.AddHtmlAttribute(HtmlAttributes.data_toggle, "dropdown");
     this.Component.Button.Action = "#";
     this.Component.Button.HtmlProperties.Value += this.Component.Button.HtmlProperties.Value +
                                                   "<span class=\"caret\"></span>";
     var button = new Button(this.ViewContext,this.Component.Button);
     group.AddButton(button);
     return group.ToString();
 }