Class NotifyValueChangingExtensions
Extensions for INotifyValueChanging<TValue>.
Inherited Members
Namespace: Unity.AppUI.UI
Assembly: Unity.AppUI.dll
Syntax
public static class NotifyValueChangingExtensions
Methods
RegisterValueChangingCallback<TValue>(INotifyValueChanging<TValue>, EventCallback<ChangingEvent<TValue>>)
Register a callback which will be invoked when the UI component's value is changing.
Declaration
[Preserve]
public static bool RegisterValueChangingCallback<TValue>(this INotifyValueChanging<TValue> control, EventCallback<ChangingEvent<TValue>> callback)
Parameters
| Type | Name | Description |
|---|---|---|
| INotifyValueChanging<TValue> | control | The UI component. |
| EventCallback<ChangingEvent<TValue>> | callback | The callback. |
Returns
| Type | Description |
|---|---|
| bool | True if the UI component can handle callbacks, False otherwise. |
Type Parameters
| Name | Description |
|---|---|
| TValue | The type of value handled by the UI component. |
UnregisterValueChangingCallback<TValue>(INotifyValueChanging<TValue>, EventCallback<ChangingEvent<TValue>>)
Unregister a callback which has been invoked when the UI component's value was changing.
Declaration
[Preserve]
public static bool UnregisterValueChangingCallback<TValue>(this INotifyValueChanging<TValue> control, EventCallback<ChangingEvent<TValue>> callback)
Parameters
| Type | Name | Description |
|---|---|---|
| INotifyValueChanging<TValue> | control | The UI component. |
| EventCallback<ChangingEvent<TValue>> | callback | The callback. |
Returns
| Type | Description |
|---|---|
| bool | True if the UI component can handle callbacks, False otherwise. |
Type Parameters
| Name | Description |
|---|---|
| TValue | The type of value handled by the UI component. |