| File: System\Windows\Media\AncestorChangedEventArgs.cs | Web Access |
| Project: src\wpf\src\Microsoft.DotNet.Wpf\src\PresentationCore\PresentationCore.csproj (PresentationCore) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace System.Windows.Media { internal class AncestorChangedEventArgs { public AncestorChangedEventArgs(DependencyObject subRoot, DependencyObject oldParent) { _subRoot = subRoot; _oldParent = oldParent; } public DependencyObject Ancestor { get { return _subRoot; } } public DependencyObject OldParent { get { return _oldParent; } } private DependencyObject _subRoot; // direct child of the changed link. private DependencyObject _oldParent; // If link is cut; otherwise null. } }