530 references to UnsetValue
PresentationCore (30)
Core\CSharp\System\Windows\EventHandlersStore.cs (4)
119
_entries[key.GlobalIndex] = DependencyProperty.
UnsetValue
;
228
_entries[routedEvent.GlobalIndex] = DependencyProperty.
UnsetValue
;
304
if (list == DependencyProperty.
UnsetValue
)
322
if (existingDelegate == DependencyProperty.
UnsetValue
)
Core\CSharp\System\Windows\Media\Animation\Animatable.cs (1)
336
return ReadLocalValue(dp) == DependencyProperty.
UnsetValue
;
Core\CSharp\System\Windows\Media\Animation\AnimationLayer.cs (7)
10
private object _snapshotValue = DependencyProperty.
UnsetValue
;
36
Debug.Assert(defaultDestinationValue != DependencyProperty.
UnsetValue
,
85
Debug.Assert(defaultDestinationValue == DependencyProperty.
UnsetValue
,
174
_snapshotValue = DependencyProperty.
UnsetValue
;
222
Debug.Assert(defaultDestinationValue != DependencyProperty.
UnsetValue
);
242
Debug.Assert(_snapshotValue != DependencyProperty.
UnsetValue
);
256
if (currentLayerValue == DependencyProperty.
UnsetValue
)
Core\CSharp\System\Windows\Media\Animation\AnimationStorage.cs (18)
56
&& _snapshotValue == DependencyProperty.
UnsetValue
;
178
|| animatedPropertyMap[_dependencyProperty.GlobalIndex] == DependencyProperty.
UnsetValue
)
250
Debug.Assert(animatedPropertyMap[_dependencyProperty.GlobalIndex] != DependencyProperty.
UnsetValue
);
291
animatedPropertyMap[_dependencyProperty.GlobalIndex] = DependencyProperty.
UnsetValue
;
306
if (_baseValue != DependencyProperty.
UnsetValue
)
534
_snapshotValue = DependencyProperty.
UnsetValue
;
746
object defaultDestinationValue = DependencyProperty.
UnsetValue
;
813
storage._snapshotValue = DependencyProperty.
UnsetValue
;
883
if (currentStorage == DependencyProperty.
UnsetValue
)
925
Debug.Assert(storage._snapshotValue != DependencyProperty.
UnsetValue
);
932
if (currentPropertyValue == DependencyProperty.
UnsetValue
)
937
Debug.Assert(currentPropertyValue != DependencyProperty.
UnsetValue
);
974
if (storage._snapshotValue != DependencyProperty.
UnsetValue
)
980
Debug.Assert(defaultDestinationValue != DependencyProperty.
UnsetValue
);
992
if (currentLayerValue == DependencyProperty.
UnsetValue
)
1097
Debug.Assert( AnimatedPropertyMapField.GetValue(d)[dp.GlobalIndex] == DependencyProperty.
UnsetValue
1176
private object _snapshotValue = DependencyProperty.
UnsetValue
;
1184
internal object _baseValue = DependencyProperty.
UnsetValue
;
PresentationFramework (375)
src\Framework\MS\Internal\Annotations\Anchoring\DataIdProcessor.cs (2)
101
if (fetchAsBatch && dataId != DependencyProperty.
UnsetValue
)
139
if (!fetchAsBatch && !childrenCalledProcessAnnotations && dataId != DependencyProperty.
UnsetValue
)
src\Framework\MS\Internal\Annotations\Anchoring\PathNode.cs (1)
305
if (node.ReadLocalValue(AnnotationService.ServiceProperty) != DependencyProperty.
UnsetValue
)
src\Framework\MS\Internal\Annotations\Component\AnnotationHighlightLayer.cs (2)
253
object value = DependencyProperty.
UnsetValue
;
281
return GetHighlightValue(staticTextPosition, direction) != DependencyProperty.
UnsetValue
;
src\Framework\MS\Internal\Data\ClrBindingWorker.cs (4)
178
(accessor == DependencyProperty.
UnsetValue
&& XmlWorker == null))
437
ParentBindingExpression.UpdateNotifyDataErrors(indei, propName, DependencyProperty.
UnsetValue
);
445
ParentBindingExpression.UpdateNotifyDataErrors((INotifyDataErrorInfo)args[0], (string)args[1], DependencyProperty.
UnsetValue
);
707
PW.OnNewValue(k, DependencyProperty.
UnsetValue
);
src\Framework\MS\Internal\Data\CollectionViewGroupInternal.cs (3)
155
return DependencyProperty.
UnsetValue
;
162
return DependencyProperty.
UnsetValue
;
416
if (seed1 == DependencyProperty.
UnsetValue
)
src\Framework\MS\Internal\Data\CollectionViewGroupRoot.cs (2)
266
name = DependencyProperty.
UnsetValue
; // name is 'seen'
283
if (name != DependencyProperty.
UnsetValue
)
src\Framework\MS\Internal\Data\DefaultValueConverter.cs (4)
204
object result = DependencyProperty.
UnsetValue
;
284
object value = DependencyProperty.
UnsetValue
;
292
if (value == DependencyProperty.
UnsetValue
)
471
return (parsedValue != DependencyProperty.
UnsetValue
)
src\Framework\MS\Internal\Data\DynamicValueConverter.cs (2)
47
object result = DependencyProperty.
UnsetValue
; // meaning: failure to convert
72
object result = DependencyProperty.
UnsetValue
; // meaning: failure to convert
src\Framework\MS\Internal\Data\ObjectRef.cs (4)
190
d.ReadLocalValue(System.Windows.Navigation.NavigationService.NavigationServiceProperty) == DependencyProperty.
UnsetValue
)
281
o = DependencyProperty.
UnsetValue
;
412
return DependencyProperty.
UnsetValue
; // we fell off the tree
521
return DependencyProperty.
UnsetValue
; // we fell off the tree
src\Framework\MS\Internal\Data\PropertyPathWorker.cs (12)
239
object value = DependencyProperty.
UnsetValue
;
322
if (accessor == DependencyProperty.
UnsetValue
)
406
rawValue = DependencyProperty.
UnsetValue
; // the real value will arrive later
746
parent == DependencyProperty.
UnsetValue
||
752
if (parent == DependencyProperty.
UnsetValue
||
833
svs.info = DependencyProperty.
UnsetValue
;
1244
info = DependencyProperty.
UnsetValue
;
1518
return DependencyProperty.
UnsetValue
;
1526
if (item != BindingExpression.NullDataItem && info != null && !(item == null && info != DependencyProperty.
UnsetValue
))
1528
object o = DependencyProperty.
UnsetValue
;
1573
o = DependencyProperty.
UnsetValue
;
1589
return DependencyProperty.
UnsetValue
;
src\Framework\MS\Internal\Data\SortFieldComparer.cs (4)
170
if (value == DependencyProperty.
UnsetValue
)
195
if (value == DependencyProperty.
UnsetValue
||
216
_values[0] = DependencyProperty.
UnsetValue
; // sentinel - unknown value
229
_values[index] = DependencyProperty.
UnsetValue
;
src\Framework\MS\Internal\Data\XmlBindingWorker.cs (2)
151
return DependencyProperty.
UnsetValue
;
472
_hostWorker.UseNewXmlItem(DependencyProperty.
UnsetValue
);
src\Framework\MS\Internal\DataStreams.cs (1)
300
newValue = DependencyProperty.
UnsetValue
;
src\Framework\MS\Internal\Documents\TextBoxLine.cs (1)
463
&& highlights.GetHighlightValue(position, LogicalDirection.Forward, typeof(TextSelection)) != DependencyProperty.
UnsetValue
)
src\Framework\MS\Internal\Helper.cs (8)
70
_resource = DependencyProperty.
UnsetValue
;
340
if (styleSelector != DependencyProperty.
UnsetValue
&&
345
if (style != DependencyProperty.
UnsetValue
&&
390
return (templateSelector != DependencyProperty.
UnsetValue
&&
406
return (template != DependencyProperty.
UnsetValue
&&
916
object value = DependencyProperty.
UnsetValue
;
929
if (value != DependencyProperty.
UnsetValue
)
989
else if (value != DependencyProperty.
UnsetValue
)
src\Framework\MS\Internal\Ink\DrawingAttributesDefaultValueFactory.cs (1)
87
if (_owner.ReadLocalValue(InkCanvas.DefaultDrawingAttributesProperty) == DependencyProperty.
UnsetValue
)
src\Framework\MS\Internal\Ink\StrokeCollectionDefaultValueFactory.cs (1)
96
if ( _owner.ReadLocalValue(_dependencyProperty) == DependencyProperty.
UnsetValue
)
src\Framework\MS\Internal\SystemXmlHelper.cs (1)
81
return (extensions != null) ? extensions.FindXmlNodeWithInnerText(items, innerText, out index) : DependencyProperty.
UnsetValue
;
src\Framework\MS\Internal\Text\DynamicPropertyReader.cs (1)
265
if (selected == DependencyProperty.
UnsetValue
)
src\Framework\MS\Internal\UncommonValueTable.cs (1)
28
return GetValue(id, DependencyProperty.
UnsetValue
);
src\Framework\System\Windows\Application.cs (2)
378
if (resource == DependencyProperty.
UnsetValue
|| resource == null)
411
if (resource == DependencyProperty.
UnsetValue
|| resource == null)
src\Framework\System\Windows\Automation\Peers\GroupItemAutomationPeer.cs (1)
209
if (item == DependencyProperty.
UnsetValue
)
src\Framework\System\Windows\Automation\Peers\ItemAutomationPeer.cs (2)
99
if (item != DependencyProperty.
UnsetValue
)
640
return (item == null) ? DependencyProperty.
UnsetValue
: item;
src\Framework\System\Windows\Automation\Peers\ItemsControlAutomationPeer.cs (1)
167
if (dataItem == DependencyProperty.
UnsetValue
)
src\Framework\System\Windows\Condition.cs (1)
321
private object _value = DependencyProperty.
UnsetValue
;
src\Framework\System\Windows\Controls\AlternationConverter.cs (1)
49
return DependencyProperty.
UnsetValue
;
src\Framework\System\Windows\Controls\BorderGapMaskConverter.cs (2)
55
return DependencyProperty.
UnsetValue
;
61
return DependencyProperty.
UnsetValue
;
src\Framework\System\Windows\Controls\ContentControl.cs (1)
175
return ReadLocalValue(ContentProperty) != DependencyProperty.
UnsetValue
;
src\Framework\System\Windows\Controls\DataGrid.cs (1)
2839
if (item == DependencyProperty.
UnsetValue
)
src\Framework\System\Windows\Controls\DataGridCellInfo.cs (5)
91
Debug.Assert(item == DependencyProperty.
UnsetValue
, "This should only be used to make an Unset CellInfo.");
137
return new DataGridCellInfo(owner, column, (item == null) ? DependencyProperty.
UnsetValue
: item);
217
get { return _column != null || _info.Item != DependencyProperty.
UnsetValue
; }
236
get { return (Item != DependencyProperty.
UnsetValue
) && (_column != null); }
274
get { return new DataGridCellInfo(DependencyProperty.
UnsetValue
); }
src\Framework\System\Windows\Controls\DataGridHeadersVisibilityToVisibilityConverter.cs (1)
59
return DependencyProperty.
UnsetValue
;
src\Framework\System\Windows\Controls\DataGridHelper.cs (2)
625
if (flowDirectionObj != DependencyProperty.
UnsetValue
)
637
if (flowDirectionObj != DependencyProperty.
UnsetValue
)
src\Framework\System\Windows\Controls\DocumentViewer.cs (1)
2062
if (zoomValue == DependencyProperty.
UnsetValue
)
src\Framework\System\Windows\Controls\Frame.cs (1)
158
return DependencyProperty.
UnsetValue
;
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (2)
1224
if ((template != DependencyProperty.
UnsetValue
) && (template != null))
1230
if ((selector != DependencyProperty.
UnsetValue
) && (selector != null))
src\Framework\System\Windows\Controls\ItemContainerGenerator.cs (2)
580
if (item != DependencyProperty.
UnsetValue
)
584
item = DependencyProperty.
UnsetValue
;
src\Framework\System\Windows\Controls\ItemsControl.cs (15)
421
if (ReadLocalValue(ItemTemplateSelectorProperty) != DependencyProperty.
UnsetValue
||
422
ReadLocalValue(DisplayMemberPathProperty) == DependencyProperty.
UnsetValue
)
2170
if (nextItem == DependencyProperty.
UnsetValue
|| nextItem is CollectionViewGroupInternal)
2344
while (firstItem == DependencyProperty.
UnsetValue
);
2351
(firstItem == DependencyProperty.
UnsetValue
|| firstItem is CollectionViewGroupInternal))
2417
(firstItem == DependencyProperty.
UnsetValue
|| firstItem is CollectionViewGroupInternal))
2483
(lastItem == DependencyProperty.
UnsetValue
|| lastItem is CollectionViewGroupInternal))
2578
if (item == DependencyProperty.
UnsetValue
)
2780
if (firstItem != DependencyProperty.
UnsetValue
)
2872
if (currentElement == null || returnItem == DependencyProperty.
UnsetValue
)
3141
if (item != DependencyProperty.
UnsetValue
)
3375
object item = DependencyProperty.
UnsetValue
;
3385
if (item != DependencyProperty.
UnsetValue
)
3426
container.ReadLocalValue(FrameworkElement.StyleProperty) != DependencyProperty.
UnsetValue
)
3476
if (item == DependencyProperty.
UnsetValue
src\Framework\System\Windows\Controls\ListBox.cs (2)
738
if (item == DependencyProperty.
UnsetValue
)
967
if (value != null && value != DependencyProperty.
UnsetValue
)
src\Framework\System\Windows\Controls\MenuScrollingVisibilityConverter.cs (2)
64
return DependencyProperty.
UnsetValue
;
70
return DependencyProperty.
UnsetValue
;
src\Framework\System\Windows\Controls\PasswordTextNavigator.cs (1)
304
return DependencyProperty.
UnsetValue
;
src\Framework\System\Windows\Controls\Primitives\Selector.cs (14)
374
return DependencyProperty.
UnsetValue
;
430
return DependencyProperty.
UnsetValue
;
529
item = DependencyProperty.
UnsetValue
;
574
item = DependencyProperty.
UnsetValue
;
587
return DependencyProperty.
UnsetValue
;
593
return DependencyProperty.
UnsetValue
; // no suitable item found
611
return DependencyProperty.
UnsetValue
;
639
return DependencyProperty.
UnsetValue
;
655
if (tempValue == DependencyProperty.
UnsetValue
)
685
if (item == DependencyProperty.
UnsetValue
&& s.HasItems)
1780
if (desiredSelectedValue == DependencyProperty.
UnsetValue
)
1973
if (item != DependencyProperty.
UnsetValue
)
2250
selectedValue = DependencyProperty.
UnsetValue
;
2700
if (!isSelected && info != null && info.Item != DependencyProperty.
UnsetValue
)
src\Framework\System\Windows\Controls\Primitives\TextBoxBase.cs (2)
1769
if (value == DependencyProperty.
UnsetValue
)
2163
if (value == DependencyProperty.
UnsetValue
)
src\Framework\System\Windows\Controls\StickyNote.cs (1)
1963
return DependencyProperty.
UnsetValue
;
src\Framework\System\Windows\Controls\TextBlock.cs (2)
3373
localValue != DependencyProperty.
UnsetValue
&&
4067
return (localBaseline != DependencyProperty.
UnsetValue
) && !DoubleUtil.IsNaN((double) localBaseline);
src\Framework\System\Windows\Controls\TextBox.cs (10)
1242
_newTextValue = DependencyProperty.
UnsetValue
;
1262
_newTextValue = DependencyProperty.
UnsetValue
;
1552
if (textBox._newTextValue == DependencyProperty.
UnsetValue
||
1801
if (ReadLocalValue(HeightProperty) != DependencyProperty.
UnsetValue
||
1802
ReadLocalValue(MaxHeightProperty) != DependencyProperty.
UnsetValue
||
1803
ReadLocalValue(MinHeightProperty) != DependencyProperty.
UnsetValue
)
1839
if (ReadLocalValue(HeightProperty) != DependencyProperty.
UnsetValue
||
1840
ReadLocalValue(MaxHeightProperty) != DependencyProperty.
UnsetValue
||
1841
ReadLocalValue(MinHeightProperty) != DependencyProperty.
UnsetValue
)
1955
private object _newTextValue = DependencyProperty.
UnsetValue
;
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (3)
6288
else if ((box = container.ReadLocalValue(ItemsHostInsetProperty)) != DependencyProperty.
UnsetValue
)
6349
if (item == DependencyProperty.
UnsetValue
)
7508
if (v != DependencyProperty.
UnsetValue
)
src\Framework\System\Windows\Data\Binding.cs (1)
535
if (value != DependencyProperty.
UnsetValue
)
src\Framework\System\Windows\Data\BindingBase.cs (2)
104
get { return GetValue(Feature.FallbackValue, DependencyProperty.
UnsetValue
); }
136
get { return GetValue(Feature.TargetNullValue, DependencyProperty.
UnsetValue
); }
src\Framework\System\Windows\Data\BindingExpression.cs (42)
384
get { return (Worker != null) ? Worker.RawValue() : DependencyProperty.
UnsetValue
; }
601
ChangeValue(DependencyProperty.
UnsetValue
, false);
731
contextElementFound = (o != DependencyProperty.
UnsetValue
);
792
if (source == DependencyProperty.
UnsetValue
)
1065
proposedValue = DependencyProperty.
UnsetValue
;
1079
else if (entry.ConvertedValue == DependencyProperty.
UnsetValue
)
1252
TransferValue(DependencyProperty.
UnsetValue
, false);
1281
object value = (newValue == DependencyProperty.
UnsetValue
) ? Worker.RawValue() : newValue;
1294
if (value != DependencyProperty.
UnsetValue
)
1322
if ( ((value != null) && (value != Binding.DoNothing) && (value != DependencyProperty.
UnsetValue
))
1342
if ((value != Binding.DoNothing) && (value != DependencyProperty.
UnsetValue
))
1351
if (EffectiveTargetNullValue != DependencyProperty.
UnsetValue
&&
1375
value = DependencyProperty.
UnsetValue
;
1418
value == DependencyProperty.
UnsetValue
)
1432
value != DependencyProperty.
UnsetValue
&& !TargetProperty.IsValidValue(value))
1447
value = DependencyProperty.
UnsetValue
;
1456
if (value == DependencyProperty.
UnsetValue
)
1528
object rawValue = DependencyProperty.
UnsetValue
;
1529
object itemValue = DependencyProperty.
UnsetValue
;
1545
if (rawValue == DependencyProperty.
UnsetValue
)
1554
if (itemValue == DependencyProperty.
UnsetValue
)
1664
convertedValue = DependencyProperty.
UnsetValue
;
1677
convertedValue = DependencyProperty.
UnsetValue
;
1729
convertedValue = DependencyProperty.
UnsetValue
;
1741
convertedValue = DependencyProperty.
UnsetValue
;
1758
TransferValue(DependencyProperty.
UnsetValue
, isASubPropertyChange);
1873
if (value != Binding.DoNothing && value != DependencyProperty.
UnsetValue
&&
1891
if (value != Binding.DoNothing && value != DependencyProperty.
UnsetValue
)
1931
if (value == DependencyProperty.
UnsetValue
)
1954
if (value != DependencyProperty.
UnsetValue
)
1957
if (value == DependencyProperty.
UnsetValue
)
1975
if (value == DependencyProperty.
UnsetValue
)
1980
if (value == Binding.DoNothing || value == DependencyProperty.
UnsetValue
||
2015
value = DependencyProperty.
UnsetValue
;
2023
value = DependencyProperty.
UnsetValue
;
2049
if (value == DependencyProperty.
UnsetValue
)
2156
: DependencyProperty.
UnsetValue
;
2160
convertedValue = DependencyProperty.
UnsetValue
;
2162
else if (convertedValue == DependencyProperty.
UnsetValue
)
2313
if (value != DependencyProperty.
UnsetValue
&& value != dataErrorValue && IsDynamic)
2522
UpdateNotifyDataErrors(DependencyProperty.
UnsetValue
);
2529
(arg) => { UpdateNotifyDataErrors(DependencyProperty.
UnsetValue
);
src\Framework\System\Windows\Data\BindingExpressionBase.cs (16)
837
return DependencyProperty.
UnsetValue
;
852
get { return GetValue(Feature.EffectiveTargetNullValue, DependencyProperty.
UnsetValue
); }
1168
if (value == DependencyProperty.
UnsetValue
)
1420
object oldValue = (_value != DefaultValueObject) ? _value : DependencyProperty.
UnsetValue
;
1554
value = DependencyProperty.
UnsetValue
;
1559
if (value == DependencyProperty.
UnsetValue
&& IsOneWayToSource)
1564
if (value != DependencyProperty.
UnsetValue
)
1618
return DependencyProperty.
UnsetValue
;
2084
object newValue = DependencyProperty.
UnsetValue
; // usually none
2105
if (newValue != DependencyProperty.
UnsetValue
)
2179
if (value == DependencyProperty.
UnsetValue
|| dp.IsValidValue(value))
2239
if (ParentBindingBase.FallbackValue != DependencyProperty.
UnsetValue
)
2686
else if (targetNullValue == DependencyProperty.
UnsetValue
&& be is PriorityBindingExpression)
2697
if (targetNullValue != DependencyProperty.
UnsetValue
)
2703
targetNullValue = DependencyProperty.
UnsetValue
;
2720
SetValue(Feature.EffectiveTargetNullValue, targetNullValue, DependencyProperty.
UnsetValue
);
src\Framework\System\Windows\Data\BindingGroup.cs (8)
497
value = DependencyProperty.
UnsetValue
;
521
return (value != DependencyProperty.
UnsetValue
);
552
return (value != DependencyProperty.
UnsetValue
);
997
ValidationResult validationResult = rule.Validate(DependencyProperty.
UnsetValue
, culture, this);
1184
result = (bindExpr.UpdateSource(proposedValueEntry.ConvertedValue) != DependencyProperty.
UnsetValue
)
1231
ValidationResult validationResult = rule.Validate(DependencyProperty.
UnsetValue
, culture, this);
1695
return (entry != null) ? entry.Value : DependencyProperty.
UnsetValue
;
1797
_value = (bindingExpression != null) ? bindingExpression.SourceValue : DependencyProperty.
UnsetValue
;
src\Framework\System\Windows\Data\MultiBindingExpression.cs (29)
500
result = DependencyProperty.
UnsetValue
;
513
result = DependencyProperty.
UnsetValue
;
524
if (result == DependencyProperty.
UnsetValue
)
544
result = DependencyProperty.
UnsetValue
;
580
if (value != Binding.DoNothing && value != DependencyProperty.
UnsetValue
)
588
value = DependencyProperty.
UnsetValue
;
592
else if (value == DependencyProperty.
UnsetValue
&& TraceData.IsEnabled)
604
if (value == DependencyProperty.
UnsetValue
)
626
return DependencyProperty.
UnsetValue
;
656
if (value != DependencyProperty.
UnsetValue
)
661
if (value == DependencyProperty.
UnsetValue
)
669
if (values[i] == DependencyProperty.
UnsetValue
)
691
if (convertedValue == DependencyProperty.
UnsetValue
)
745
if (value == DependencyProperty.
UnsetValue
)
776
MutableBindingExpressions[i].StoreValueInBindingGroup(DependencyProperty.
UnsetValue
, bindingGroup);
789
if (value == DependencyProperty.
UnsetValue
)
814
if (value == DependencyProperty.
UnsetValue
)
829
values[i] = DependencyProperty.
UnsetValue
; // prevent writing an invalid value
893
if (IsDetached || conversionResult == DependencyProperty.
UnsetValue
|| conversionResult == null)
913
else if (value == DependencyProperty.
UnsetValue
)
1160
object value = DependencyProperty.
UnsetValue
;
1206
if (_tempValues[i] == DependencyProperty.
UnsetValue
)
1208
preFormattedValue = DependencyProperty.
UnsetValue
;
1224
if (EffectiveStringFormat == null || preFormattedValue == Binding.DoNothing || preFormattedValue == DependencyProperty.
UnsetValue
)
1255
value = DependencyProperty.
UnsetValue
;
1280
if (EffectiveTargetNullValue != DependencyProperty.
UnsetValue
&&
1296
if (value != DependencyProperty.
UnsetValue
&& !TargetProperty.IsValidValue(value))
1311
value = DependencyProperty.
UnsetValue
;
1315
if (value == DependencyProperty.
UnsetValue
)
src\Framework\System\Windows\Data\PriorityBindingExpression.cs (3)
343
return DependencyProperty.
UnsetValue
;
356
return DependencyProperty.
UnsetValue
;
392
result = DependencyProperty.
UnsetValue
;
src\Framework\System\Windows\DataTrigger.cs (1)
198
private object _value = DependencyProperty.
UnsetValue
;
src\Framework\System\Windows\Documents\DocumentSequenceTextContainer.cs (1)
897
return DependencyProperty.
UnsetValue
;
src\Framework\System\Windows\Documents\FixedDocument.cs (2)
1140
if (selected != DependencyProperty.
UnsetValue
)
1150
while (highlights.GetHighlightValue(highlightTransitionPosition, LogicalDirection.Forward, typeof(TextSelection)) != DependencyProperty.
UnsetValue
);
src\Framework\System\Windows\Documents\Highlights.cs (2)
73
value = DependencyProperty.
UnsetValue
;
83
if (value != DependencyProperty.
UnsetValue
)
src\Framework\System\Windows\Documents\Hyperlink.cs (1)
370
value = DependencyProperty.
UnsetValue
;
src\Framework\System\Windows\Documents\NullTextNavigator.cs (1)
152
return DependencyProperty.
UnsetValue
;
src\Framework\System\Windows\Documents\SpellerHighlightLayer.cs (1)
65
value = DependencyProperty.
UnsetValue
;
src\Framework\System\Windows\Documents\TextContainer.cs (1)
742
return (parent == null) ? DependencyProperty.
UnsetValue
: parent.GetValue(formattingProperty);
src\Framework\System\windows\Documents\TextEditorCharacters.cs (3)
193
FontWeight fontWeight = (propertyValue != DependencyProperty.
UnsetValue
&& (FontWeight)propertyValue == FontWeights.Bold) ? FontWeights.Normal : FontWeights.Bold;
213
FontStyle fontStyle = (propertyValue != DependencyProperty.
UnsetValue
&& (FontStyle)propertyValue == FontStyles.Italic) ? FontStyles.Normal : FontStyles.Italic;
236
TextDecorationCollection textDecorations = propertyValue != DependencyProperty.
UnsetValue
? (TextDecorationCollection)propertyValue : null;
src\Framework\System\windows\Documents\TextEditorDragDrop.cs (1)
443
bool italic = (_textEditor.AcceptsRichContent && fontStylePropertyValue != DependencyProperty.
UnsetValue
&& (FontStyle)fontStylePropertyValue == FontStyles.Italic);
src\Framework\System\Windows\Documents\TextPointer.cs (1)
2538
val = DependencyProperty.
UnsetValue
;
src\Framework\System\Windows\Documents\TextRangeBase.cs (2)
421
return DependencyProperty.
UnsetValue
; //
502
return DependencyProperty.
UnsetValue
;
src\Framework\System\Windows\Documents\TextRangeEdit.cs (2)
104
if (firstInline.ReadLocalValue(property) != DependencyProperty.
UnsetValue
||
105
secondInline.ReadLocalValue(property) != DependencyProperty.
UnsetValue
)
src\Framework\System\Windows\Documents\TextRangeEditTables.cs (2)
2308
if (value != DependencyProperty.
UnsetValue
)
2317
if (value != DependencyProperty.
UnsetValue
)
src\Framework\System\Windows\Documents\TextRangeSerialization.cs (5)
744
if (value != DependencyProperty.
UnsetValue
)
925
propertyValue != DependencyProperty.
UnsetValue
)
935
write = (metadata == null) || !(TextSchema.ValuesAreEqual(propertyValue, /*defaultValue*/metadata.DefaultValue) && localValue == DependencyProperty.
UnsetValue
);
1154
if (propertyValue != null && propertyValue != DependencyProperty.
UnsetValue
)
1642
if (element.ReadLocalValue(property) != DependencyProperty.
UnsetValue
||
src\Framework\System\windows\Documents\TextSelection.cs (9)
1420
object propertyValue = DependencyProperty.
UnsetValue
;
1428
if (propertyValue == DependencyProperty.
UnsetValue
)
1436
if (propertyValue == DependencyProperty.
UnsetValue
)
1497
if (_springloadFormatting.ReadLocalValue(inheritableProperties[i]) == DependencyProperty.
UnsetValue
&&
1508
if (_springloadFormatting.ReadLocalValue(noninheritableProperties[i]) == DependencyProperty.
UnsetValue
&&
1637
if (backgroundPropertyValue != null && backgroundPropertyValue != DependencyProperty.
UnsetValue
&&
1652
if (backgroundPropertyValue != null && backgroundPropertyValue != DependencyProperty.
UnsetValue
)
2056
italic = (textEditor.AcceptsRichContent && fontStylePropertyValue != DependencyProperty.
UnsetValue
&& (FontStyle)fontStylePropertyValue == FontStyles.Italic);
2146
italic = (_textEditor.AcceptsRichContent && fontStylePropertyValue != DependencyProperty.
UnsetValue
&& (FontStyle)fontStylePropertyValue == FontStyles.Italic);
src\Framework\System\windows\Documents\TextSelectionHighlightLayer.cs (1)
72
value = DependencyProperty.
UnsetValue
;
src\Framework\System\Windows\Documents\TextTreePropertyUndoUnit.cs (1)
61
if (_propertyRecord.Value != DependencyProperty.
UnsetValue
)
src\Framework\System\Windows\Documents\TextTreeUndo.cs (1)
71
record.Value = e.OldValueSource == BaseValueSourceInternal.Local ? e.OldValue : DependencyProperty.
UnsetValue
;
src\Framework\System\windows\Documents\UIElementPropertyUndoUnit.cs (1)
75
if (_oldValue != DependencyProperty.
UnsetValue
)
src\Framework\System\Windows\Documents\ZoomPercentageConverter.cs (5)
77
return DependencyProperty.
UnsetValue
;
94
return DependencyProperty.
UnsetValue
;
110
return DependencyProperty.
UnsetValue
;
216
return DependencyProperty.
UnsetValue
;
223
return DependencyProperty.
UnsetValue
;
src\Framework\System\Windows\FrameworkContentElement.cs (8)
154
&& ReadLocalValue(StyleProperty) != DependencyProperty.
UnsetValue
;
368
if (resource == DependencyProperty.
UnsetValue
)
398
if (resource == DependencyProperty.
UnsetValue
)
492
(entry.GetFlattenedEntry(RequestFlags.FullyResolved).Value != DependencyProperty.
UnsetValue
))
541
if (implicitValue != DependencyProperty.
UnsetValue
)
627
if (entry.Value != DependencyProperty.
UnsetValue
)
658
Debug.Assert(entry.Value == DependencyProperty.
UnsetValue
);
692
entry.Value = DependencyProperty.
UnsetValue
;
src\Framework\System\Windows\FrameworkElement.cs (20)
175
&& ReadLocalValue(StyleProperty) != DependencyProperty.
UnsetValue
;
841
if (resource == DependencyProperty.
UnsetValue
)
872
if (resource == DependencyProperty.
UnsetValue
)
950
return DependencyProperty.
UnsetValue
;
983
return DependencyProperty.
UnsetValue
;
1068
if (value != DependencyProperty.
UnsetValue
)
1159
return DependencyProperty.
UnsetValue
;
1214
if (value != DependencyProperty.
UnsetValue
)
1250
if (value != DependencyProperty.
UnsetValue
)
1280
if (value != DependencyProperty.
UnsetValue
)
1301
if (value != DependencyProperty.
UnsetValue
)
1323
if (value != DependencyProperty.
UnsetValue
)
1417
return DependencyProperty.
UnsetValue
;
1839
(entry.GetFlattenedEntry(RequestFlags.FullyResolved).Value != DependencyProperty.
UnsetValue
))
1889
if (implicitValue != DependencyProperty.
UnsetValue
)
1921
if( value != DependencyProperty.
UnsetValue
)
1931
Debug.Assert(entry.Value == DependencyProperty.
UnsetValue
,"FrameworkElement.GetRawValue should never fall through with a value != DependencyProperty.UnsetValue. We're supposed to return as soon as we found something.");
2047
return DependencyProperty.
UnsetValue
;
2055
entry.Value = DependencyProperty.
UnsetValue
;
4031
if (flowDirectionValue != DependencyProperty.
UnsetValue
)
src\Framework\System\Windows\FrameworkElementFactory.cs (3)
555
return DependencyProperty.
UnsetValue
;
1201
string prefix = (o == DependencyProperty.
UnsetValue
) ? "Content" : (string)o;
1216
if (dpContent == null && o != DependencyProperty.
UnsetValue
)
src\Framework\System\Windows\FrameworkTemplate.cs (1)
279
return DependencyProperty.
UnsetValue
;
src\Framework\System\Windows\Generated\FrameworkContentElement.cs (1)
180
return DependencyProperty.
UnsetValue
;
src\Framework\System\Windows\Generated\FrameworkElement.cs (1)
180
return DependencyProperty.
UnsetValue
;
src\Framework\System\Windows\Markup\BamlRecordReader.cs (17)
2801
if (propertyValue != DependencyProperty.
UnsetValue
)
2821
if (propertyValue != DependencyProperty.
UnsetValue
)
2843
if (propertyValue != DependencyProperty.
UnsetValue
)
3499
if (DependencyProperty.
UnsetValue
!= o)
3565
if (DependencyProperty.
UnsetValue
!= o)
3589
if (DependencyProperty.
UnsetValue
!= o)
4032
if (DependencyProperty.
UnsetValue
== propValue)
4052
if (FindResourceInParserStack(attribValue.Trim(), false /*allowDeferredResourceReference*/, false /*mustReturnDeferredResourceReference*/) == DependencyProperty.
UnsetValue
)
4080
object o = DependencyProperty.
UnsetValue
;
4119
object value = DependencyProperty.
UnsetValue
;
4168
if (value != DependencyProperty.
UnsetValue
)
4200
return DependencyProperty.
UnsetValue
;
4236
return DependencyProperty.
UnsetValue
;
4249
if (resource == DependencyProperty.
UnsetValue
)
4258
if (resource == DependencyProperty.
UnsetValue
&& mustReturnDeferredResourceReference)
4260
resource = new DeferredResourceReferenceHolder(resourceNameObject, DependencyProperty.
UnsetValue
);
4279
if (value == DependencyProperty.
UnsetValue
)
src\Framework\System\Windows\Markup\Primitives\ElementMarkupObject.cs (1)
843
if (value == DependencyProperty.
UnsetValue
)
src\Framework\System\Windows\Media\Animation\Storyboard.cs (8)
965
if (baseValue == DependencyProperty.
UnsetValue
)
980
Debug.Assert(cacheEntry.Source != DependencyProperty.
UnsetValue
,
999
entry.SetAnimatedValue(cacheEntry.Clone, DependencyProperty.
UnsetValue
);
1027
DependencyProperty.
UnsetValue
,
1028
DependencyProperty.
UnsetValue
);
2058
if (value != DependencyProperty.
UnsetValue
)
2076
if (clone != DependencyProperty.
UnsetValue
)
2082
clonesMap[dp.GlobalIndex] = DependencyProperty.
UnsetValue
;
src\Framework\System\Windows\Navigation\NavigationWindow.cs (1)
1031
return DependencyProperty.
UnsetValue
;
src\Framework\System\Windows\ResourceReferenceExpression.cs (1)
161
resource = DependencyProperty.
UnsetValue
;
src\Framework\System\Windows\Setter.cs (3)
57
if( value == DependencyProperty.
UnsetValue
)
183
if( value == DependencyProperty.
UnsetValue
)
334
private object _value = DependencyProperty.
UnsetValue
;
src\Framework\System\Windows\StaticResourceExtension.cs (6)
101
if (value == DependencyProperty.
UnsetValue
)
157
success = (value != DependencyProperty.
UnsetValue
);
196
if (value == DependencyProperty.
UnsetValue
)
285
object value = DependencyProperty.
UnsetValue
;
291
if (mustReturnDeferredResourceReference && value == DependencyProperty.
UnsetValue
)
345
val = DependencyProperty.
UnsetValue
;
src\Framework\System\Windows\Style.cs (1)
362
return DependencyProperty.
UnsetValue
;
src\Framework\System\Windows\StyleHelper.cs (18)
2573
object value = DependencyProperty.
UnsetValue
;
2628
object value = DependencyProperty.
UnsetValue
;
2774
if ((value != DependencyProperty.
UnsetValue
) && !dp.IsValidValue(value))
2776
value = DependencyProperty.
UnsetValue
;
2804
if (value != DependencyProperty.
UnsetValue
)
2850
if (value != DependencyProperty.
UnsetValue
)
2963
return DependencyProperty.
UnsetValue
;
2981
if (value != DependencyProperty.
UnsetValue
)
3696
newEntry.Value = DependencyProperty.
UnsetValue
;
3783
if (value != DependencyProperty.
UnsetValue
)
3842
newEntry.Value = DependencyProperty.
UnsetValue
;
3868
object setterValue = DependencyProperty.
UnsetValue
;
3894
if (value != DependencyProperty.
UnsetValue
)
3935
if (value != DependencyProperty.
UnsetValue
)
3949
if (setterValue != DependencyProperty.
UnsetValue
)
3980
if (value != DependencyProperty.
UnsetValue
)
4339
if( candidateTrigger != DependencyProperty.
UnsetValue
)
5045
if( existing == DependencyProperty.
UnsetValue
)
src\Framework\System\Windows\SystemResources.cs (1)
2109
get { return Value == DependencyProperty.
UnsetValue
; }
src\Framework\System\Windows\TemplateContent.cs (3)
450
if (newValue == DependencyProperty.
UnsetValue
)
472
newValue = DependencyProperty.
UnsetValue
;
772
if (obj == DependencyProperty.
UnsetValue
)
src\Framework\System\Windows\Trigger.cs (1)
317
private object _value = DependencyProperty.
UnsetValue
;
PresentationFramework.Classic (1)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
40
if (ReadLocalValue(ControlBrushProperty) == DependencyProperty.
UnsetValue
)
System.Activities.Core.Presentation (6)
System\Activities\Core\Presentation\ExpandableItemShowExpandedMultiValueConverter.cs (2)
20
if (values[0] != DependencyProperty.
UnsetValue
&& values[1] != DependencyProperty.
UnsetValue
)
System\Activities\Core\Presentation\FlowDecisionDesigner.xaml.cs (1)
204
if (e.NewValue != DependencyProperty.
UnsetValue
)
System\Activities\Core\Presentation\FlowSwitchDesigner.xaml.cs (1)
262
if (e.NewValue != DependencyProperty.
UnsetValue
)
System\Activities\Core\Presentation\HintTextConverter.cs (1)
21
if (values[0] == null || values[1] == DependencyProperty.
UnsetValue
)
System\Activities\Core\Presentation\HintTextMaxWidthConverter.cs (1)
23
return o != null ? maxWidth : DependencyProperty.
UnsetValue
;
System.Activities.Presentation (13)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\UserInterface\FocusScopeManager.cs (2)
306
return DependencyProperty.
UnsetValue
;
312
return DependencyProperty.
UnsetValue
;
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\FromExpression\Framework\ValueEditors\ChoiceEditor.cs (1)
1178
if (sourceChanged || ReadLocalValue(ValueIndexProperty) == DependencyProperty.
UnsetValue
)
System.Activities.Presentation\System\Activities\Presentation\Converters\OutlineViewTextConverter.cs (2)
21
if (values[0] != DependencyProperty.
UnsetValue
)
26
if (string.IsNullOrEmpty(displayName) && values[1] != DependencyProperty.
UnsetValue
)
System.Activities.Presentation\System\Activities\Presentation\ExpandCollapseIsCheckedConverter.cs (1)
16
if (values[2] != DependencyProperty.
UnsetValue
)
System.Activities.Presentation\System\Activities\Presentation\View\CanExpandCollapseAllConverter.cs (1)
15
if (value == null || value == DependencyProperty.
UnsetValue
)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (2)
1699
object result = DependencyProperty.
UnsetValue
;
1718
object result = DependencyProperty.
UnsetValue
;
System.Activities.Presentation\System\Activities\Presentation\View\VisualBasicEditor.xaml.cs (3)
2115
if (values[0] == DependencyProperty.
UnsetValue
|| etb == null)
2137
if (values[0] == DependencyProperty.
UnsetValue
|| etb == null)
2164
if (value == DependencyProperty.
UnsetValue
|| expressionType == null || !expressionType.IsValueType)
System.Activities.Presentation\System\Activities\Presentation\WorkflowItemsPresenter.cs (1)
483
if (((DependencyObject)sender).ReadLocalValue(IndexProperty) != DependencyProperty.
UnsetValue
)
WindowsBase (105)
Base\MS\Internal\ComponentModel\DependencyObjectPropertyDescriptor.cs (1)
717
if (_metadata.DefaultValue != DependencyProperty.
UnsetValue
)
Base\MS\Internal\FreezableDefaultValueFactory.cs (1)
139
if (_owner.ReadLocalValue(_property) == DependencyProperty.
UnsetValue
)
Base\MS\Internal\ObservableCollectionDefaultValueFactory.cs (1)
101
if (_owner.ReadLocalValue(_property) == DependencyProperty.
UnsetValue
)
Base\System\Windows\DependencyObject.cs (30)
235
if (entry.Value == DependencyProperty.
UnsetValue
)
262
if (entry.Value != DependencyProperty.
UnsetValue
)
664
if( value == DependencyProperty.
UnsetValue
)
1052
return !object.ReferenceEquals(value, DependencyProperty.
UnsetValue
);
1343
if (newEntry.Value == DependencyProperty.
UnsetValue
)
1371
bool found = (newEntry.Value != DependencyProperty.
UnsetValue
);
1719
if (coercedValue == DependencyProperty.
UnsetValue
)
1771
if (dependentList != DependencyProperty.
UnsetValue
)
1775
dependentListMap[dp.GlobalIndex] = DependencyProperty.
UnsetValue
;
1785
if (dependentList != DependencyProperty.
UnsetValue
)
1789
dependentListMap[dp.GlobalIndex] = DependencyProperty.
UnsetValue
;
1809
if (value != DependencyProperty.
UnsetValue
&& value != Expression.NoValue)
1846
value = DependencyProperty.
UnsetValue
;
1851
if (value == DependencyProperty.
UnsetValue
)
1904
object value = DependencyProperty.
UnsetValue
;
1910
bool isClearLocalValue = isSetValue && (newEntry.Value == DependencyProperty.
UnsetValue
);
1940
value = DependencyProperty.
UnsetValue
;
1949
if (value != DependencyProperty.
UnsetValue
)
2032
if (value == DependencyProperty.
UnsetValue
)
2205
return DependencyProperty.
UnsetValue
;
2227
value = DependencyProperty.
UnsetValue
;
2255
if (localValue != DependencyProperty.
UnsetValue
)
2449
if (dependentListObj == DependencyProperty.
UnsetValue
)
2462
if (dependentListObj != DependencyProperty.
UnsetValue
)
2471
dependentListMap[source.DependencyProperty.GlobalIndex] = DependencyProperty.
UnsetValue
;
2691
if (localValue != DependencyProperty.
UnsetValue
)
3086
if (value != DependencyProperty.
UnsetValue
)
3345
Debug.Assert(value != DependencyProperty.
UnsetValue
, "Value to be set cannot be UnsetValue");
3435
Debug.Assert(value != DependencyProperty.
UnsetValue
, "Value to be set cannot be UnsetValue");
3436
Debug.Assert(baseValue != DependencyProperty.
UnsetValue
, "BaseValue to be set cannot be UnsetValue");
Base\System\Windows\DependencyProperty.cs (1)
588
if (DependencyProperty.
UnsetValue
== _metadataMap[dType.Id])
Base\System\Windows\EffectiveValueEntry.cs (10)
41
_value = DependencyProperty.
UnsetValue
;
48
_value = DependencyProperty.
UnsetValue
;
54
Debug.Assert(value != DependencyProperty.
UnsetValue
);
68
Debug.Assert((value != DependencyProperty.
UnsetValue
) &&
88
Debug.Assert(value != DependencyProperty.
UnsetValue
&&
488
Debug.Assert(Value != DependencyProperty.
UnsetValue
);
493
Debug.Assert(ModifiedValue != null && ModifiedValue.BaseValue != DependencyProperty.
UnsetValue
);
499
return DependencyProperty.
UnsetValue
;
509
Debug.Assert(Value != DependencyProperty.
UnsetValue
);
514
Debug.Assert(ModifiedValue != null && ModifiedValue.BaseValue != DependencyProperty.
UnsetValue
);
Base\System\Windows\Expression.cs (1)
144
return DependencyProperty.
UnsetValue
;
Base\System\Windows\Freezable.cs (2)
946
Debug.Assert(sourceValue != DependencyProperty.
UnsetValue
);
956
if (sourceValue == DependencyProperty.
UnsetValue
)
Base\System\Windows\PropertyMetadata.cs (3)
98
if (value == DependencyProperty.
UnsetValue
)
168
if (result != DependencyProperty.
UnsetValue
)
213
return DependencyProperty.
UnsetValue
;
Base\System\Windows\UncommonField.cs (1)
85
if (value != DependencyProperty.
UnsetValue
)
Shared\MS\Utility\FrugalMap.cs (54)
119
_loneEntry.Value = DependencyProperty.
UnsetValue
;
147
_loneEntry.Value = DependencyProperty.
UnsetValue
;
157
return DependencyProperty.
UnsetValue
;
174
value = DependencyProperty.
UnsetValue
;
335
_entry0.Value = DependencyProperty.
UnsetValue
;
346
_entry1.Value = DependencyProperty.
UnsetValue
;
353
_entry1.Value = DependencyProperty.
UnsetValue
;
364
_entry2.Value = DependencyProperty.
UnsetValue
;
372
_entry2.Value = DependencyProperty.
UnsetValue
;
379
_entry2.Value = DependencyProperty.
UnsetValue
;
411
return DependencyProperty.
UnsetValue
;
470
value = DependencyProperty.
UnsetValue
;
477
value = DependencyProperty.
UnsetValue
;
672
_entry0.Value = DependencyProperty.
UnsetValue
;
683
_entry1.Value = DependencyProperty.
UnsetValue
;
690
_entry1.Value = DependencyProperty.
UnsetValue
;
701
_entry2.Value = DependencyProperty.
UnsetValue
;
709
_entry2.Value = DependencyProperty.
UnsetValue
;
716
_entry2.Value = DependencyProperty.
UnsetValue
;
729
_entry3.Value = DependencyProperty.
UnsetValue
;
738
_entry3.Value = DependencyProperty.
UnsetValue
;
746
_entry3.Value = DependencyProperty.
UnsetValue
;
753
_entry3.Value = DependencyProperty.
UnsetValue
;
767
_entry4.Value = DependencyProperty.
UnsetValue
;
777
_entry4.Value = DependencyProperty.
UnsetValue
;
786
_entry4.Value = DependencyProperty.
UnsetValue
;
794
_entry4.Value = DependencyProperty.
UnsetValue
;
801
_entry4.Value = DependencyProperty.
UnsetValue
;
816
_entry5.Value = DependencyProperty.
UnsetValue
;
827
_entry5.Value = DependencyProperty.
UnsetValue
;
837
_entry5.Value = DependencyProperty.
UnsetValue
;
846
_entry5.Value = DependencyProperty.
UnsetValue
;
854
_entry5.Value = DependencyProperty.
UnsetValue
;
861
_entry5.Value = DependencyProperty.
UnsetValue
;
914
return DependencyProperty.
UnsetValue
;
1022
value = DependencyProperty.
UnsetValue
;
1029
value = DependencyProperty.
UnsetValue
;
1204
_entries[_count - 1].Value = DependencyProperty.
UnsetValue
;
1220
return DependencyProperty.
UnsetValue
;
1241
value = DependencyProperty.
UnsetValue
;
1445
_entries[_count - 1].Value = DependencyProperty.
UnsetValue
;
1460
return DependencyProperty.
UnsetValue
;
1477
value = DependencyProperty.
UnsetValue
;
1596
return ((value != NullValue) && (value != null)) ? value : DependencyProperty.
UnsetValue
;
1624
value = DependencyProperty.
UnsetValue
;
1629
value = DependencyProperty.
UnsetValue
;
1649
value = DependencyProperty.
UnsetValue
;
1694
return DependencyProperty.
UnsetValue
;
1699
if (value != DependencyProperty.
UnsetValue
)
1926
_entries[_count - 1].Value = DependencyProperty.
UnsetValue
;
1941
return DependencyProperty.
UnsetValue
;
1958
value = DependencyProperty.
UnsetValue
;
2059
return DependencyProperty.
UnsetValue
;
2064
if (value != DependencyProperty.
UnsetValue
)