FrameworkElement.EndInit Method

Definition

Indica que el proceso de inicialización del elemento se ha completado.Indicates that the initialization process for the element is complete.

public:
 virtual void EndInit();
public virtual void EndInit ();
abstract member EndInit : unit -> unit
override this.EndInit : unit -> unit
Public Overridable Sub EndInit ()

Implements

Exceptions

Se llamó a EndInit() sin llamar antes a BeginInit() en el elemento.EndInit() was called without BeginInit() having previously been called on the element.

Remarks

Si se ha llamado previamente a BeginInit, la implementación base generará el evento Initialized.If BeginInit was previously called, the base implementation will raise the Initialized event. De lo contrario, si no se llamó a BeginInit o no se pudo determinar si se llamó a BeginInit, Initialized no se produce y se produce una excepción en su lugar.Otherwise, if BeginInit was not called or it could not be determined whether BeginInit was called, Initialized is not raised and an exception is thrown instead.

Notes to Inheritors

Implemente este método para proporcionar un control especial que debe ocurrir cuando se inicializa el elemento durante el proceso de carga del elemento.Implement this method to provide special handling that should happen when your element is initialized during the element loading process.

La implementación de debe llamar a la implementación base, porque la implementación base (predeterminada) establece algunas marcas internas para realizar un seguimiento de la inicialización.Your implementation should call the base implementation, because the base (default) implementation sets some internal flags to keep track of initialization.

Applies to