public INTERNAL_PropertyStorage(DependencyObject owner, DependencyProperty property) { Owner = owner; Property = property; if (property == FrameworkElement.IsEnabledProperty || property == FrameworkElement.IsHitTestVisibleProperty) { _isIsEnabledOrIsHitTestVisibleProperty = true; } CoercedValue = INTERNAL_NoValue.NoValue; VisualStateValue = INTERNAL_NoValue.NoValue; ActiveLocalValue = new INTERNAL_LocalValue(); LocalStyleValue = INTERNAL_NoValue.NoValue; ImplicitStyleValue = INTERNAL_NoValue.NoValue; InheritedValue = INTERNAL_NoValue.NoValue; }
public INTERNAL_PropertyStorage(DependencyObject owner, DependencyProperty property, PropertyMetadata typeMetadata) { //_defaultValue = INTERNAL_NoValue.NoValue; Owner = owner; Property = property; TypeMetadata = typeMetadata; if (property == FrameworkElement.IsEnabledProperty || property == FrameworkElement.IsHitTestVisibleProperty) { _isIsEnabledOrIsHitTestVisibleProperty = true; } CoercedValue = INTERNAL_NoValue.NoValue; VisualStateValue = INTERNAL_NoValue.NoValue; ActiveLocalValue = new INTERNAL_LocalValue(); LocalStyleValue = INTERNAL_NoValue.NoValue; ImplicitStyleValue = INTERNAL_NoValue.NoValue; InheritedValue = INTERNAL_NoValue.NoValue; // The default value is used initially for the Actual Value: ActualValue = typeMetadata != null ? typeMetadata.DefaultValue : null; }