Panel.Children 속성

정의

UIElementCollection 자식 요소의 Panel을 가져옵니다.

public:
 property System::Windows::Controls::UIElementCollection ^ Children { System::Windows::Controls::UIElementCollection ^ get(); };
public System.Windows.Controls.UIElementCollection Children { get; }
member this.Children : System.Windows.Controls.UIElementCollection
Public ReadOnly Property Children As UIElementCollection

속성 값

UIElementCollection

UIElementCollection 기본값은 빈 UIElementCollection입니다.

예제

다음 코드 예제를 사용 하는 방법에 설명 합니다 Children 추가할 속성을 UIElement 에 대 한 자식을 Panel 요소.

StackPanel myStackPanel = new StackPanel();
Button myButton = new Button();
myButton.Content = "Press me";
myStackPanel.Children.Add(myButton);
Dim myStackPanel As New StackPanel()
Dim myButton As New Button()
myButton.Content = "Press me"
myStackPanel.Children.Add(myButton)

설명

합니다 Children 의 컬렉션을 Panel 요소만 포함할 수 있습니다 UIElement 개체입니다. 추가 UIElement 에 대 한 자식을 Panel 암시적으로 추가 합니다 UIElementCollection 에 대 한는 Panel 요소입니다.

이 컬렉션을 사용 하지 마십시오 파생 된 Panel 클래스에 사용 된 InternalChildren 컬렉션 대신 합니다.

이 속성을 반환 null 경우는 Panel 데이터 바인딩되어 있습니다.

적용 대상

추가 정보