Exemplo n.º 1
0
        public static StackPanel2 StackPanel(this IUIElement2 parent, params IUIElement2[] childeren)
        {
            var panel = new StackPanel2();

            foreach (var item in childeren)
            {
                panel.Add(item);
            }
            return(panel);
        }
Exemplo n.º 2
0
 public void Add(IUIElement2 child)
 {
     this._childeren.Add(child);
     this.Control.Children.Add(child.Control);
 }
Exemplo n.º 3
0
 public static TextBox2 TextBox(this IUIElement2 parent, string text)
 {
     return(new TextBox2(text));
 }
Exemplo n.º 4
0
 public static Button2 Button(this IUIElement2 parent, object content, RoutedEventHandler click)
 {
     return(new Button2(content, click));
 }
Exemplo n.º 5
0
 public static ToggleButton2 ToggleButton(this IUIElement2 parent, object content)
 {
     return(new ToggleButton2(content));
 }
Exemplo n.º 6
0
 public static Button2 Button(this IUIElement2 parent, object content)
 {
     return(new Button2(content));
 }