Selector.ClearContainerForItemOverride(DependencyObject, Object) Method

Definition

항목 컨테이너를 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)

Parameters

element
DependencyObject

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

item
Object

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

Remarks

ClearContainerForItemOverride 표시 트리에서 항목 컨테이너가 제거 될 때 연결 된 Selector.IsSelected 속성을 지웁니다.ClearContainerForItemOverride 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.

Applies to