LostFocusEventManager Class
TOC
Collapse the table of content
Expand the table of content

LostFocusEventManager Class

 

Provides a WeakEventManager implementation so that you can use the "weak event listener" pattern to attach listeners for the UIElement.LostFocus or ContentElement.LostFocus events.

Namespace:   System.Windows
Assembly:  PresentationFramework (in PresentationFramework.dll)

System.Object
  System.Windows.Threading.DispatcherObject
    System.Windows.WeakEventManager
      System.Windows.LostFocusEventManager

public class LostFocusEventManager : WeakEventManager

NameDescription
System_CAPS_pubpropertyDispatcher

Gets the Dispatcher this DispatcherObject is associated with. (Inherited from DispatcherObject.)

System_CAPS_protpropertyItem[Object]

Gets or sets the data being stored for the specified source.(Inherited from WeakEventManager.)

System_CAPS_protpropertyReadLock

Establishes a read-lock on the underlying data table, and returns an IDisposable.(Inherited from WeakEventManager.)

System_CAPS_protpropertyWriteLock

Establishes a write-lock on the underlying data table, and returns anIDisposable.(Inherited from WeakEventManager.)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticAddHandler(DependencyObject, EventHandler<RoutedEventArgs>)

Adds the specified event handler, which is called when specified source raises the UIElement.LostFocus or ContentElement.LostFocus event.

System_CAPS_pubmethodSystem_CAPS_staticAddListener(DependencyObject, IWeakEventListener)

Adds the provided listener to the list of listeners on the provided source.

System_CAPS_pubmethodCheckAccess()

Determines whether the calling thread has access to this DispatcherObject.(Inherited from DispatcherObject.)

System_CAPS_protmethodDeliverEvent(Object, EventArgs)

Delivers the event being managed to each listener.(Inherited from WeakEventManager.)

System_CAPS_protmethodDeliverEventToList(Object, EventArgs, WeakEventManager.ListenerList)

Delivers the event being managed to each listener in the provided list.(Inherited from WeakEventManager.)

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_protmethodNewListenerList()

Returns a new object to contain listeners to the UIElement.LostFocus or ContentElement.LostFocus event.(Overrides WeakEventManager.NewListenerList().)

System_CAPS_protmethodProtectedAddHandler(Object, Delegate)

Adds the specified delegate as an event handler of the specified source.(Inherited from WeakEventManager.)

System_CAPS_protmethodProtectedAddListener(Object, IWeakEventListener)

Adds the provided listener to the provided source for the event being managed.(Inherited from WeakEventManager.)

System_CAPS_protmethodProtectedRemoveHandler(Object, Delegate)

Removes the previously added handler from the specified source.(Inherited from WeakEventManager.)

System_CAPS_protmethodProtectedRemoveListener(Object, IWeakEventListener)

Removes a previously added listener from the provided source.(Inherited from WeakEventManager.)

System_CAPS_protmethodPurge(Object, Object, Boolean)

Removes inactive listener entries from the data list for the provided source. Returns true if some entries were actually removed from the list.(Inherited from WeakEventManager.)

System_CAPS_protmethodRemove(Object)

Removes all listeners for the specified source.(Inherited from WeakEventManager.)

System_CAPS_pubmethodSystem_CAPS_staticRemoveHandler(DependencyObject, EventHandler<RoutedEventArgs>)

Removes the specified event handler from the specified source.

System_CAPS_pubmethodSystem_CAPS_staticRemoveListener(DependencyObject, IWeakEventListener)

Removes the specified listener from the list of listeners on the provided source.

System_CAPS_protmethodScheduleCleanup()

Requests that a purge of unused entries in the underlying listener list be performed on a lower priority thread.(Inherited from WeakEventManager.)

System_CAPS_protmethodStartListening(Object)

Begins listening for the LostFocus event on the given source, attaching an internal class handler to that source.(Overrides WeakEventManager.StartListening(Object).)

System_CAPS_protmethodStopListening(Object)

Stops listening for the LostFocus event on the given source.(Overrides WeakEventManager.StopListening(Object).)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodVerifyAccess()

Enforces that the calling thread has access to this DispatcherObject.(Inherited from DispatcherObject.)

In order to be listeners in this pattern, your listener objects must implement IWeakEventListener. You do not need to implement IWeakEventListener on the class that is the source of the events.

WPF data binding uses this WeakEventManager so that internal classes that update bindings can attach listeners for a UIElement.LostFocus or ContentElement.LostFocus event on an object that is the target of a binding. This supports notification for the LostFocus mode of data binding, without creating strong references to data binding targets.

.NET Framework
Available since 3.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft