コード例 #1
0
ファイル: Extensions.cs プロジェクト: sonnemaf/MvuTest
        public static StackPanel2 StackPanel(this IUIElement2 parent, params IUIElement2[] childeren)
        {
            var panel = new StackPanel2();

            foreach (var item in childeren)
            {
                panel.Add(item);
            }
            return(panel);
        }
コード例 #2
0
ファイル: Panel2.cs プロジェクト: sonnemaf/MvuTest
 public void Add(IUIElement2 child)
 {
     this._childeren.Add(child);
     this.Control.Children.Add(child.Control);
 }
コード例 #3
0
ファイル: Extensions.cs プロジェクト: sonnemaf/MvuTest
 public static TextBox2 TextBox(this IUIElement2 parent, string text)
 {
     return(new TextBox2(text));
 }
コード例 #4
0
ファイル: Extensions.cs プロジェクト: sonnemaf/MvuTest
 public static Button2 Button(this IUIElement2 parent, object content, RoutedEventHandler click)
 {
     return(new Button2(content, click));
 }
コード例 #5
0
ファイル: Extensions.cs プロジェクト: sonnemaf/MvuTest
 public static ToggleButton2 ToggleButton(this IUIElement2 parent, object content)
 {
     return(new ToggleButton2(content));
 }
コード例 #6
0
ファイル: Extensions.cs プロジェクト: sonnemaf/MvuTest
 public static Button2 Button(this IUIElement2 parent, object content)
 {
     return(new Button2(content));
 }