public static StackPanel2 StackPanel(this IUIElement2 parent, params IUIElement2[] childeren) { var panel = new StackPanel2(); foreach (var item in childeren) { panel.Add(item); } return(panel); }
public void Add(IUIElement2 child) { this._childeren.Add(child); this.Control.Children.Add(child.Control); }
public static TextBox2 TextBox(this IUIElement2 parent, string text) { return(new TextBox2(text)); }
public static Button2 Button(this IUIElement2 parent, object content, RoutedEventHandler click) { return(new Button2(content, click)); }
public static ToggleButton2 ToggleButton(this IUIElement2 parent, object content) { return(new ToggleButton2(content)); }
public static Button2 Button(this IUIElement2 parent, object content) { return(new Button2(content)); }