Selector.ClearContainerForItemOverride(DependencyObject, Object) Selector.ClearContainerForItemOverride(DependencyObject, Object) Selector.ClearContainerForItemOverride(DependencyObject, Object) Selector.ClearContainerForItemOverride(DependencyObject, Object) Method

정의

항목 컨테이너를 PrepareContainerForItemOverride(DependencyObject, Object) 이전의 상태로 되돌립니다.Returns an item container to the state it was in before PrepareContainerForItemOverride(DependencyObject, Object).

protected:
 override void ClearContainerForItemOverride(System::Windows::DependencyObject ^ element, System::Object ^ item);
protected override void ClearContainerForItemOverride (System.Windows.DependencyObject element, object item);
override this.ClearContainerForItemOverride : System.Windows.DependencyObject * obj -> unit
Protected Overrides Sub ClearContainerForItemOverride (element As DependencyObject, item As Object)

매개 변수

element
DependencyObject DependencyObject DependencyObject DependencyObject

항목 컨테이너 요소입니다.The item container element.

item
Object Object Object Object

데이터 항목입니다.The data item.

설명

ClearContainerForItemOverride 지웁니다는 Selector.IsSelected 항목 컨테이너가 시각적 트리에서 제거 될 때 연결 된 속성입니다.clears the Selector.IsSelected attached property when the item container is removed from the visual tree. 항목 컨테이너가 제대로 작동 하므로 이렇게 하면는 Selector 컨테이너 재생을 사용 합니다.This is done so item containers behave correctly when the Selector uses container recycling. 자세한 내용은 VirtualizationMode 에서 "컨테이너 재활용" 및 성능 최적화: 컨트롤합니다.For more information, see VirtualizationMode and "Container Recycling" in Optimizing Performance: Controls.

적용 대상