Method UnregisterContextChangedCallback
UnregisterContextChangedCallback<T>(VisualElement, EventCallback<ContextChangedEvent<T>>)
Unregister a callback to be invoked when the context of a given type changes in a VisualElement.
Declaration
public static void UnregisterContextChangedCallback<T>(this VisualElement element, EventCallback<ContextChangedEvent<T>> callback) where T : IContext
Parameters
| Type | Name | Description |
|---|---|---|
| VisualElement | element | The VisualElement object. |
| EventCallback<ContextChangedEvent<T>> | callback | The callback. |
Type Parameters
| Name | Description |
|---|---|
| T | The type of the context. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | The VisualElement object and the callback can't be null. |