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