PresentationSource.RootChanged(Visual, Visual) 메서드
이 문서의 내용
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
루트 Visual이 변경된 알림을 제공합니다.
protected:
void RootChanged(System::Windows::Media::Visual ^ oldRoot, System::Windows::Media::Visual ^ newRoot);
[System.Security.SecurityCritical]
[System.Security.SecurityTreatAsSafe]
protected void RootChanged(System.Windows.Media.Visual oldRoot, System.Windows.Media.Visual newRoot);
protected void RootChanged(System.Windows.Media.Visual oldRoot, System.Windows.Media.Visual newRoot);
[<System.Security.SecurityCritical>]
[<System.Security.SecurityTreatAsSafe>]
member this.RootChanged : System.Windows.Media.Visual * System.Windows.Media.Visual -> unit
member this.RootChanged : System.Windows.Media.Visual * System.Windows.Media.Visual -> unit
Protected Sub RootChanged (oldRoot As Visual, newRoot As Visual)
- 특성
파생 클래스는 루트가 변경되었음을 나타내기 위해 이 메서드를 Visual 호출해야 합니다.
이 메서드를 호출하면 해당 루트 시각적 개체가 파생 클래스인 경우에만 지정된 루트 시각적 FrameworkElement 개체에서 두 개의 개체 수명 이벤트가 발생합니다.
이전 루트 시각적 개체는 이벤트를 발생 Unloaded 시키고 요소 트리를 아래쪽으로 처리하여 이 이벤트를 각 자식 요소에 브로드캐스트합니다.
새 루트 시각적 개체는 이벤트를 발생 Loaded 시키고 요소 트리를 아래쪽으로 처리하여 이 이벤트를 각 자식 요소에 브로드캐스트합니다.
제품 | 버전 |
---|---|
.NET Framework | 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
.NET 피드백
.NET은(는) 오픈 소스 프로젝트입니다. 다음 링크를 선택하여 피드백을 제공해 주세요.