File: System\Windows\FrameworkReadOnlyPropertyMetadata.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.
 
using System;
 
namespace System.Windows
{
    internal class ReadOnlyFrameworkPropertyMetadata : FrameworkPropertyMetadata
    {
        public ReadOnlyFrameworkPropertyMetadata(object defaultValue, GetReadOnlyValueCallback getValueCallback) :
            base(defaultValue)
        {
            _getValueCallback = getValueCallback;
        }
 
        internal override GetReadOnlyValueCallback GetReadOnlyValueCallback
        {
            get
            {
                return _getValueCallback;
            }
        }
 
        private GetReadOnlyValueCallback _getValueCallback;
    }
}