src/Runtime/Runtime/System.Windows/ResourceDictionary.cs
/// <summary>
///     Fire Invalidation at the end of Init phase
/// </summary>
/// <remarks>
///     BeginInit and EndInit follow a transaction model. BeginInit marks the
///     dictionary uninitialized and EndInit marks it initialized.
/// </remarks>
Fire Invalidation at the end of Init phase
Fire Invalidation at the end of Init phase
public void EndInit()
        {
            if (!this.IsInitializePending)
            {
                throw new InvalidOperationException("Must call BeginInit before EndInit.");
            }
            Debug.Assert(this.IsInitialized == false, "Dictionary should not be initialized when EndInit is called");
            this.IsInitializePending = false;
            this.IsInitialized = true;
            this.NotifyOwners(new ResourcesChangeInfo(null, this));
        }
public void EndInit ( ) { if ( ! this . IsInitializePending ) { throw new InvalidOperationException ( " " ) ; } Debug . Assert ( this . IsInitialized == false , " " ) ; this . IsInitializePending = false ; this . IsInitialized = true ; this . NotifyOwners ( new ResourcesChangeInfo ( null , this ) ) ; }
Fire Invalidation at the end of Init phase
Fire Invalidation at the end of Init phase
// Fire Invalidations collectively for all changes made during the Init Phase
remarks
BeginInit and EndInit follow a transaction model. BeginInit marks the
dictionary uninitialized and EndInit marks it initialized.
BeginInit and EndInit follow a transaction model . BeginInit marks the dictionary uninitialized and EndInit marks it initialized .