CurrentChangedEventManager CurrentChangedEventManager CurrentChangedEventManager CurrentChangedEventManager Class

Definition

Proporciona una implementación de WeakEventManager para que pueda usar el modelo de "agente de escucha de evento débil" con el fin de asociar agentes de escucha para el evento CurrentChanged. Provides a WeakEventManager implementation so that you can use the "weak event listener" pattern to attach listeners for the CurrentChanged event.

public ref class CurrentChangedEventManager : System::Windows::WeakEventManager
public class CurrentChangedEventManager : System.Windows.WeakEventManager
type CurrentChangedEventManager = class
    inherit WeakEventManager
Public Class CurrentChangedEventManager
Inherits WeakEventManager
Inheritance
CurrentChangedEventManagerCurrentChangedEventManagerCurrentChangedEventManagerCurrentChangedEventManager

Remarks

Para que los agentes de escucha en este patrón, deben implementar los objetos del agente de escucha IWeakEventListener.In order to be listeners in this pattern, your listener objects must implement IWeakEventListener. No es necesario implementar IWeakEventListener en la clase que es el origen de los eventos.You do not need to implement IWeakEventListener on the class that is the source of the events.

Methods

AddHandler(ICollectionView, EventHandler<EventArgs>) AddHandler(ICollectionView, EventHandler<EventArgs>) AddHandler(ICollectionView, EventHandler<EventArgs>) AddHandler(ICollectionView, EventHandler<EventArgs>)

Agrega el controlador de eventos especificado, que se llama cuando el origen especificado provoca el evento CurrentChanged . Adds the specified event handler, which is called when specified source raises the CurrentChanged event.

AddListener(ICollectionView, IWeakEventListener) AddListener(ICollectionView, IWeakEventListener) AddListener(ICollectionView, IWeakEventListener) AddListener(ICollectionView, IWeakEventListener)

Agrega el agente de escucha especificado al evento CurrentChanged del origen especificado. Adds the specified listener to the CurrentChanged event of the specified source.

CheckAccess() CheckAccess() CheckAccess() CheckAccess()

Determina si el subproceso de la llamada tiene acceso a DispatcherObject. Determines whether the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)
DeliverEvent(Object, EventArgs) DeliverEvent(Object, EventArgs) DeliverEvent(Object, EventArgs) DeliverEvent(Object, EventArgs)

Entrega el evento que se administra a cada agente de escucha. Delivers the event being managed to each listener.

(Inherited from WeakEventManager)
DeliverEventToList(Object, EventArgs, WeakEventManager+ListenerList) DeliverEventToList(Object, EventArgs, WeakEventManager+ListenerList) DeliverEventToList(Object, EventArgs, WeakEventManager+ListenerList) DeliverEventToList(Object, EventArgs, WeakEventManager+ListenerList)

Entrega el evento que se administra a cada agente de escucha en la lista proporcionada. Delivers the event being managed to each listener in the provided list.

(Inherited from WeakEventManager)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determina si el objeto especificado es igual al objeto actual. Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Sirve como la función hash predeterminada. Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Obtiene el Type de la instancia actual. Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Crea una copia superficial del Object actual. Creates a shallow copy of the current Object.

(Inherited from Object)
NewListenerList() NewListenerList() NewListenerList() NewListenerList()

Devuelve un nuevo objeto para contener agentes de escucha para el evento CurrentChanged. Returns a new object to contain listeners to the CurrentChanged event.

ProtectedAddHandler(Object, Delegate) ProtectedAddHandler(Object, Delegate) ProtectedAddHandler(Object, Delegate) ProtectedAddHandler(Object, Delegate)

Agrega el delegado especificado como controlador de eventos del origen especificado. Adds the specified delegate as an event handler of the specified source.

(Inherited from WeakEventManager)
ProtectedAddListener(Object, IWeakEventListener) ProtectedAddListener(Object, IWeakEventListener) ProtectedAddListener(Object, IWeakEventListener) ProtectedAddListener(Object, IWeakEventListener)

Agrega el agente de escucha proporcionado al origen proporcionado para el evento que se administra. Adds the provided listener to the provided source for the event being managed.

(Inherited from WeakEventManager)
ProtectedRemoveHandler(Object, Delegate) ProtectedRemoveHandler(Object, Delegate) ProtectedRemoveHandler(Object, Delegate) ProtectedRemoveHandler(Object, Delegate)

Quita el controlador agregado anteriormente del origen especificado. Removes the previously added handler from the specified source.

(Inherited from WeakEventManager)
ProtectedRemoveListener(Object, IWeakEventListener) ProtectedRemoveListener(Object, IWeakEventListener) ProtectedRemoveListener(Object, IWeakEventListener) ProtectedRemoveListener(Object, IWeakEventListener)

Quita un agente de escucha previamente agregado del origen proporcionado. Removes a previously added listener from the provided source.

(Inherited from WeakEventManager)
Purge(Object, Object, Boolean) Purge(Object, Object, Boolean) Purge(Object, Object, Boolean) Purge(Object, Object, Boolean)

Quita las entradas del agente de escucha inactivas de la lista de datos para el origen proporcionado. Removes inactive listener entries from the data list for the provided source. Devuelve true si se quitaron realmente algunas entradas de la lista. Returns true if some entries were actually removed from the list.

(Inherited from WeakEventManager)
Remove(Object) Remove(Object) Remove(Object) Remove(Object)

Quita todos los agentes de escucha del origen especificado. Removes all listeners for the specified source.

(Inherited from WeakEventManager)
RemoveHandler(ICollectionView, EventHandler<EventArgs>) RemoveHandler(ICollectionView, EventHandler<EventArgs>) RemoveHandler(ICollectionView, EventHandler<EventArgs>) RemoveHandler(ICollectionView, EventHandler<EventArgs>)

Quita el controlador de eventos especificado del origen indicado. Removes the specified event handler from the specified source.

RemoveListener(ICollectionView, IWeakEventListener) RemoveListener(ICollectionView, IWeakEventListener) RemoveListener(ICollectionView, IWeakEventListener) RemoveListener(ICollectionView, IWeakEventListener)

Quita el agente de escucha especificado del evento CurrentChanged del origen especificado. Removes the specified listener from the CurrentChanged event of the specified source.

ScheduleCleanup() ScheduleCleanup() ScheduleCleanup() ScheduleCleanup()

Solicita que se realice una purga de entradas no usadas en la lista de agentes de escucha subyacente en un subproceso de menor prioridad. Requests that a purge of unused entries in the underlying listener list be performed on a lower priority thread.

(Inherited from WeakEventManager)
StartListening(Object) StartListening(Object) StartListening(Object) StartListening(Object)

Inicia la escucha del evento CurrentChanged en el origen especificado. Begins listening for the CurrentChanged event on the specified source.

StopListening(Object) StopListening(Object) StopListening(Object) StopListening(Object)

Detiene la escucha del evento CurrentChanged en el origen especificado. Stops listening for the CurrentChanged event on the specified source.

ToString() ToString() ToString() ToString()

Devuelve una cadena que representa el objeto actual. Returns a string that represents the current object.

(Inherited from Object)
VerifyAccess() VerifyAccess() VerifyAccess() VerifyAccess()

Exige que el subproceso de la llamada tenga acceso a DispatcherObject. Enforces that the calling thread has access to this DispatcherObject.

(Inherited from DispatcherObject)

Properties

Dispatcher Dispatcher Dispatcher Dispatcher

Obtiene el objeto Dispatcher al que está asociado DispatcherObject. Gets the Dispatcher this DispatcherObject is associated with.

(Inherited from DispatcherObject)
Item[Object] Item[Object] Item[Object] Item[Object]

Obtiene o establece los datos que se almacenan para el origen especificado. Gets or sets the data being stored for the specified source.

(Inherited from WeakEventManager)
ReadLock ReadLock ReadLock ReadLock

Establece un bloqueo de lectura en la tabla de datos subyacente y devuelve IDisposable. Establishes a read-lock on the underlying data table, and returns an IDisposable.

(Inherited from WeakEventManager)
WriteLock WriteLock WriteLock WriteLock

Establece un bloqueo de escritura en la tabla de datos subyacente y devuelve IDisposable. Establishes a write-lock on the underlying data table, and returns an IDisposable.

(Inherited from WeakEventManager)

Applies to

See Also