File: System\Windows\Diagnostics\StaticResourceResolvedEventArgs.cs
Web Access
Project: src\src\Microsoft.DotNet.Wpf\src\PresentationFramework\PresentationFramework.csproj (PresentationFramework)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
 
//
// Description:
//      Contains EventArg types raised to communicate resolution of a StaticResource reference.
 
namespace System.Windows.Diagnostics
{
    /// <summary>
    /// Provides data for <see cref="ResourceDictionaryDiagnostics.StaticResourceResolved"/>
    /// event.
    /// </summary>
    public class StaticResourceResolvedEventArgs : EventArgs
    {
        internal StaticResourceResolvedEventArgs(
                    Object targetObject,
                    Object targetProperty,
                    ResourceDictionary rd,
                    Object key)
        {
            TargetObject = targetObject;
            TargetProperty = targetProperty;
            ResourceDictionary = rd;
            ResourceKey = key;
        }
 
        public Object TargetObject { get; private set; }
        public Object TargetProperty { get; private set; }
        public ResourceDictionary ResourceDictionary { get; private set; }
        public object ResourceKey { get; private set; }
    }
}