ItemsControl.ContainerFromElement ItemsControl.ContainerFromElement ItemsControl.ContainerFromElement ItemsControl.ContainerFromElement Method

정의

지정된 컨테이너 요소를 소유하는 현재 ItemsControl에 속하는 컨테이너를 반환합니다.Returns the container that belongs to the current ItemsControl that owns the given container element.

오버로드

ContainerFromElement(DependencyObject) ContainerFromElement(DependencyObject) ContainerFromElement(DependencyObject) ContainerFromElement(DependencyObject)

지정된 요소를 소유하는 현재 ItemsControl에 속하는 컨테이너를 반환합니다.Returns the container that belongs to the current ItemsControl that owns the given element.

ContainerFromElement(ItemsControl, DependencyObject) ContainerFromElement(ItemsControl, DependencyObject) ContainerFromElement(ItemsControl, DependencyObject)

지정된 컨테이너 요소를 소유하는 지정된 ItemsControl에 속하는 컨테이너를 반환합니다.Returns the container that belongs to the specified ItemsControl that owns the given container element.

ContainerFromElement(DependencyObject) ContainerFromElement(DependencyObject) ContainerFromElement(DependencyObject) ContainerFromElement(DependencyObject)

지정된 요소를 소유하는 현재 ItemsControl에 속하는 컨테이너를 반환합니다.Returns the container that belongs to the current ItemsControl that owns the given element.

public:
 System::Windows::DependencyObject ^ ContainerFromElement(System::Windows::DependencyObject ^ element);
public System.Windows.DependencyObject ContainerFromElement (System.Windows.DependencyObject element);
member this.ContainerFromElement : System.Windows.DependencyObject -> System.Windows.DependencyObject
Public Function ContainerFromElement (element As DependencyObject) As DependencyObject

매개 변수

element
DependencyObject DependencyObject DependencyObject DependencyObject

컨테이너를 반환할 요소입니다.The element to return the container for.

반환

지정된 요소를 소유하는 ItemsControl에 속하는 컨테이너이거나, 이러한 컨테이너가 없으면 null입니다.The container that belongs to the current ItemsControl that owns the given element or null if no such container exists.

추가 정보

ContainerFromElement(ItemsControl, DependencyObject) ContainerFromElement(ItemsControl, DependencyObject) ContainerFromElement(ItemsControl, DependencyObject)

지정된 컨테이너 요소를 소유하는 지정된 ItemsControl에 속하는 컨테이너를 반환합니다.Returns the container that belongs to the specified ItemsControl that owns the given container element.

public:
 static System::Windows::DependencyObject ^ ContainerFromElement(System::Windows::Controls::ItemsControl ^ itemsControl, System::Windows::DependencyObject ^ element);
public static System.Windows.DependencyObject ContainerFromElement (System.Windows.Controls.ItemsControl itemsControl, System.Windows.DependencyObject element);
static member ContainerFromElement : System.Windows.Controls.ItemsControl * System.Windows.DependencyObject -> System.Windows.DependencyObject

매개 변수

itemsControl
ItemsControl ItemsControl ItemsControl ItemsControl

컨테이너를 반환할 ItemsControl입니다.The ItemsControl to return the container for.

element
DependencyObject DependencyObject DependencyObject DependencyObject

컨테이너를 반환할 요소입니다.The element to return the container for.

반환

itemsControl이(가) null이 아닌 경우, 지정된 요소를 소유하는 지정된 ItemsControl에 속하는 컨테이너입니다.The container that belongs to the specified ItemsControl that owns the given element, if itemsControl is not null. itemsControl이(가) null인 경우, 모든 ItemsControl에 속하는 가장 가까운 컨테이너를 반환합니다.If itemsControl is null, returns the closest container that belongs to any ItemsControl.

추가 정보

적용 대상