Esempio n. 1
0
 void ISupportInitialize.EndInit()
 {
     // Resolve all properties here
     if (_unresolvedProperty != null)
     {
         try
         {
             Property = DependencyPropertyConverter.ResolveProperty(_serviceProvider,
                                                                    SourceName, _unresolvedProperty);
         }
         finally
         {
             _unresolvedProperty = null;
         }
     }
     if (_unresolvedValue != null)
     {
         try
         {
             Value = SetterTriggerConditionValueConverter.ResolveValue(_serviceProvider,
                                                                       Property, _cultureInfoForTypeConverter, _unresolvedValue);
         }
         finally
         {
             _unresolvedValue = null;
         }
     }
     _serviceProvider             = null;
     _cultureInfoForTypeConverter = null;
 }
Esempio n. 2
0
 /// <summary>Signals the object that initialization is complete.</summary>
 // Token: 0x06000359 RID: 857 RVA: 0x000098C4 File Offset: 0x00007AC4
 void ISupportInitialize.EndInit()
 {
     if (this._unresolvedProperty != null)
     {
         try
         {
             this.Property = DependencyPropertyConverter.ResolveProperty(this._serviceProvider, this.SourceName, this._unresolvedProperty);
         }
         finally
         {
             this._unresolvedProperty = null;
         }
     }
     if (this._unresolvedValue != null)
     {
         try
         {
             this.Value = SetterTriggerConditionValueConverter.ResolveValue(this._serviceProvider, this.Property, this._cultureInfoForTypeConverter, this._unresolvedValue);
         }
         finally
         {
             this._unresolvedValue = null;
         }
     }
     this._serviceProvider             = null;
     this._cultureInfoForTypeConverter = null;
 }