internal void ResetValue()
 {
     if (this.HasModifiers)
     {
         ModifiedValue modifiedValue = this.ModifiedValue;
         this._source &= FullValueSource.ValueSourceMask;
         this.Value    = modifiedValue.BaseValue;
     }
 }
 private void WritePrivateFlag(FullValueSource bit, bool value)
 {
     if (value)
     {
         this._source |= bit;
     }
     else
     {
         this._source &= ~bit;
     }
 }
 public INTERNAL_PropertyStorage(DependencyObject owner, DependencyProperty property, PropertyMetadata typeMetadata)
 {
     this._values = new object[6]
     {
         DependencyProperty.UnsetValue, //Local
         DependencyProperty.UnsetValue, //Animated
         DependencyProperty.UnsetValue, //ImplicitReference
         DependencyProperty.UnsetValue, //LocalStyle
         DependencyProperty.UnsetValue, //ThemeStyle
         DependencyProperty.UnsetValue, //Inherited
     };
     this._source      = (FullValueSource)BaseValueSourceInternal.Default;
     this.Owner        = owner;
     this.Property     = property;
     this.TypeMetadata = typeMetadata;
     this.Value        = typeMetadata.DefaultValue;
 }
 private bool ReadPrivateFlag(FullValueSource bit)
 {
     return((this._source & bit) != 0);
 }
Esempio n. 5
0
 internal EffectiveValueEntry(DependencyProperty dp, FullValueSource fullValueSource)
 {
     _propertyIndex = (short)dp.GlobalIndex;
     _value         = DependencyProperty.UnsetValue;
     _source        = fullValueSource;
 }
Esempio n. 6
0
 private bool ReadPrivateFlag(FullValueSource bit)
 {
     return (_source & bit) != 0;
 }
Esempio n. 7
0
 private void WritePrivateFlag(FullValueSource bit, bool value)
 {
     if (value)
     {
         _source |= bit;
     }
     else
     {
         _source &= ~bit;
     }
 }
Esempio n. 8
0
 internal EffectiveValueEntry(DependencyProperty dp, FullValueSource fullValueSource)
 {
     _propertyIndex = (short) dp.GlobalIndex;
     _value = DependencyProperty.UnsetValue;
     _source = fullValueSource;
 }
Esempio n. 9
0
 // Token: 0x060089F3 RID: 35315 RVA: 0x00256803 File Offset: 0x00254A03
 public ModifiedItemValue(object value, FullValueSource valueSource)
 {
     this._value       = value;
     this._valueSource = valueSource;
 }
Esempio n. 10
0
 public ModifiedItemValue(object value, FullValueSource valueSource)
 { 
     _value = value; 
     _valueSource = valueSource;
 }