60 references to Feature
PresentationFramework (60)
System\Windows\Data\BindingExpression.cs (16)
313WeakReference wr = (WeakReference)GetValue(Feature.CollectionViewSource, null); 319ClearValue(Feature.CollectionViewSource); 321SetValue(Feature.CollectionViewSource, new WeakReference(value)); 344get { return (IValueConverter)GetValue(Feature.Converter, null); } 345set { SetValue(Feature.Converter, value, null); } 479if (!HasValue(Feature.DynamicConverter)) 483SetValue(Feature.DynamicConverter, new DynamicValueConverter(IsReflective, Worker.SourcePropertyType, Worker.TargetPropertyType), null); 485return (DynamicValueConverter)GetValue(Feature.DynamicConverter, null); 491get { return (DataSourceProvider)GetValue(Feature.DataProvider, null); } 492set { SetValue(Feature.DataProvider, value, null); } 580WeakReference dataErrorWR = (WeakReference)GetValue(Feature.DataErrorValue, null); 585SetValue(Feature.DataErrorValue, null, null); 851if (HasValue(Feature.DataProvider)) 1224WeakReference wr = GetValue(Feature.CollectionViewSource, null) as WeakReference; 2322WeakReference dataErrorWR = (WeakReference)GetValue(Feature.DataErrorValue, null); 2331SetValue(Feature.DataErrorValue, newDataErrorWR, null);
System\Windows\Data\BindingExpressionBase.cs (44)
118Debug.Assert((int)Feature.LastFeatureId <= 32, "UncommonValueTable supports only 32 Ids"); 127SetValue(Feature.ParentBindingExpressionBase, parent, null); 204WeakReference<BindingGroup> wr = (WeakReference<BindingGroup>)root.GetValue(Feature.BindingGroup, null); 231get { return (ValidationError)GetValue(Feature.ValidationError, null); } 236get { return (List<ValidationError>)GetValue(Feature.NotifyDataErrors, null); } 256return HasValue(Feature.ValidationError) || HasValue(Feature.NotifyDataErrors); 282if (!HasValue(Feature.ValidationError)) 700get { return TestFlag(PrivateFlags.iNeedsValidation) || HasValue(Feature.ValidationError); } 785get { return GetValue(Feature.ParentBindingExpressionBase, null) as MultiBindingExpression; } 791get { return GetValue(Feature.ParentBindingExpressionBase, null) as PriorityBindingExpression; } 797get { return (BindingExpressionBase)GetValue(Feature.ParentBindingExpressionBase, null); } 831get { return (string)GetValue(Feature.EffectiveStringFormat, null); } 838get { return GetValue(Feature.EffectiveTargetNullValue, DependencyProperty.UnsetValue); } 1096return !HasValue(Feature.ValidationError); 1323if (!HasValue(Feature.UpdateTargetOperation)) 1328SetValue(Feature.UpdateTargetOperation, op); 1342ClearValue(Feature.UpdateTargetOperation); 1442if (!HasValue(Feature.Timer)) 1449DispatcherTimer timer = (DispatcherTimer)GetValue(Feature.Timer, null); 1478DispatcherOperation op = (DispatcherOperation)GetValue(Feature.UpdateTargetOperation, null); 1481ClearValue(Feature.UpdateTargetOperation); 1625if (result == null && HasValue(Feature.ParentBindingExpressionBase)) 1653root.ClearValue(Feature.BindingGroup); 1666WeakReference<BindingGroup> oldBindingGroupWR = (WeakReference<BindingGroup>)root.GetValue(Feature.BindingGroup, null); 1667root.SetValue(Feature.BindingGroup, null, oldBindingGroupWR); // not ClearValue, as we'll reset it soon 1674root.SetValue(Feature.BindingGroup, oldBindingGroupWR, null); 1694if ((WeakReference<BindingGroup>)GetValue(Feature.BindingGroup, null) != null) 1809if (!root.HasValue(Feature.BindingGroup)) 1813root.SetValue(Feature.BindingGroup, new WeakReference<BindingGroup>(bg)); 1854SetValue(Feature.BindingGroup, NullBindingGroupReference); 2262if (HasValue(Feature.Timer)) 2264DispatcherTimer timer = (DispatcherTimer)GetValue(Feature.Timer, null); 2282SetValue(Feature.ValidationError, validationError, null); 2312SetValue(Feature.NotifyDataErrors, notifyDataErrors); 2333ClearValue(Feature.NotifyDataErrors); 2657SetValue(Feature.EffectiveStringFormat, Helper.GetEffectiveStringFormat(stringFormat), null); 2713SetValue(Feature.EffectiveTargetNullValue, targetNullValue, DependencyProperty.UnsetValue); 2735SetValue(Feature.Timer, timer); 2983internal bool HasValue(Feature id) { return _values.HasValue((int)id); } 2984internal object GetValue(Feature id, object defaultValue) { return _values.GetValue((int)id, defaultValue); } 2985internal void SetValue(Feature id, object value) { _values.SetValue((int)id, value); } 2986internal void SetValue(Feature id, object value, object defaultValue) { if (Object.Equals(value, defaultValue)) _values.ClearValue((int)id); else _values.SetValue((int)id, value); } 2987internal void ClearValue(Feature id) { _values.ClearValue((int)id); }