4 writes to DefaultValue
WindowsBase (4)
Base\System\Windows\DependencyProperty.cs (1)
286
defaultMetadata.
DefaultValue
= AutoGenerateDefaultValue(propertyType);
Base\System\Windows\PropertyMetadata.cs (3)
31
DefaultValue
= defaultValue;
51
DefaultValue
= defaultValue;
65
DefaultValue
= defaultValue;
31 references to DefaultValue
PresentationCore (1)
Core\CSharp\System\Windows\Media\Animation\IndependentlyAnimatedPropertyMetadata.cs (1)
27
return new IndependentlyAnimatedPropertyMetadata(
DefaultValue
);
PresentationFramework (16)
src\Framework\System\Windows\Controls\ContentPresenter.cs (1)
113
DataTemplate defaultValue = (DataTemplate) metadata.
DefaultValue
;
src\Framework\System\Windows\Controls\Control.cs (5)
60
ControlTemplate defaultValue = (ControlTemplate) metadata.
DefaultValue
;
78
Border.BorderBrushProperty.DefaultMetadata.
DefaultValue
,
100
Border.BorderThicknessProperty.DefaultMetadata.
DefaultValue
,
122
Panel.BackgroundProperty.DefaultMetadata.
DefaultValue
,
221
new FrameworkPropertyMetadata(TextElement.FontStretchProperty.DefaultMetadata.
DefaultValue
,
src\Framework\System\Windows\Controls\Page.cs (1)
79
ControlTemplate defaultValue = (ControlTemplate) metadata.
DefaultValue
;
src\Framework\System\Windows\Documents\NullTextNavigator.cs (1)
144
return property.DefaultMetadata.
DefaultValue
;
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (1)
935
write = (metadata == null) || !(TextSchema.ValuesAreEqual(propertyValue, /*defaultValue*/metadata.
DefaultValue
) && localValue == DependencyProperty.UnsetValue);
src\Framework\System\Windows\FrameworkContentElement.cs (1)
75
Style defaultValue = (Style)metadata.
DefaultValue
;
src\Framework\System\Windows\FrameworkElement.cs (1)
125
Style defaultValue = (Style) metadata.
DefaultValue
;
src\Framework\System\Windows\StyleHelper.cs (1)
261
newThemeStyle = styleMetadata.
DefaultValue
as Style;
src\Framework\System\Windows\TreeWalkHelper.cs (4)
579
(fe.HasImplicitStyleFromResources || fe.Style == FrameworkElement.StyleProperty.GetMetadata(fe.DependencyObjectType).
DefaultValue
))
635
(fce.HasImplicitStyleFromResources || fce.Style == FrameworkContentElement.StyleProperty.GetMetadata(fce.DependencyObjectType).
DefaultValue
))
760
(fe.HasImplicitStyleFromResources || fe.Style == FrameworkElement.StyleProperty.GetMetadata(fe.DependencyObjectType).
DefaultValue
))
835
(fce.HasImplicitStyleFromResources || fce.Style == FrameworkContentElement.StyleProperty.GetMetadata(fce.DependencyObjectType).
DefaultValue
))
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\View\TypePresenter.xaml.cs (1)
173
this.lastSelection = (Type)TypeProperty.DefaultMetadata.
DefaultValue
;
WindowsBase (13)
Base\MS\Internal\ComponentModel\DependencyObjectPropertyDescriptor.cs (2)
717
if (_metadata.
DefaultValue
!= DependencyProperty.UnsetValue)
719
newAttributes.Add(new DefaultValueAttribute(_metadata.
DefaultValue
));
Base\System\Windows\DependencyObject.cs (1)
287
return EffectiveValueEntry.CreateDefaultValueEntry(dp, dp.DefaultMetadata.
DefaultValue
);
Base\System\Windows\DependencyProperty.cs (9)
71
defaultMetadata = new PropertyMetadata(typeMetadata.
DefaultValue
);
117
defaultMetadata = new PropertyMetadata(typeMetadata.
DefaultValue
);
380
ValidateDefaultValueCommon(defaultMetadata.
DefaultValue
, propertyType,
610
if (typeMetadata.DefaultValueWasSet() && (typeMetadata.
DefaultValue
!= DefaultMetadata.
DefaultValue
))
627
return DefaultMetadata.
DefaultValue
;
630
return GetMetadata(dependencyObjectType).
DefaultValue
;
638
return DefaultMetadata.
DefaultValue
;
641
return GetMetadata(DependencyObjectType.FromSystemTypeInternal(forType)).
DefaultValue
;
Base\System\Windows\PropertyMetadata.cs (1)
586
_defaultValue = baseMetadata.
DefaultValue
;