PresentationSource::RootChanged Method (Visual^, Visual^)
.NET Framework (current version)
Provides notification that the root Visual has changed.
Assembly: PresentationCore (in PresentationCore.dll)
protected: [SecurityTreatAsSafeAttribute] [SecurityCriticalAttribute] void RootChanged( Visual^ oldRoot, Visual^ newRoot )
Parameters
- oldRoot
-
Type:
System.Windows.Media::Visual^
The old root Visual.
- newRoot
-
Type:
System.Windows.Media::Visual^
The new root Visual.
Derived classes should call this method to indicate that their root Visual has changed.
Calling this method causes two object lifetime events to be raised on the specified root visuals, if and only if those root visuals are FrameworkElement derived classes.
.NET Framework
Available since 3.0
Available since 3.0
Show: