GroupBox in WPF can only contain one element?

前端 未结 4 913
梦毁少年i
梦毁少年i 2021-02-11 12:15

It seem that GroupBox can only contain one element, if I place more than one it\'s won\'t go inside(or get deleted in blend).

Is this by design or am I doing something w

4条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-11 12:24

    Yes, in WPF the GroupBox will contain maximum of 1 element. You can include Grid as its child and in grid specify your desired components. For example 1 placed two buttons in GroupBox using Grid.

    Document Outline is shown below:

    Document Outline

    Code is as follow:

    
                
                    

提交回复
热议问题