Share via


BindableProperty.ValidateValueDelegate Delegate

Definition

Represents a delegate that validates whether a value is acceptable for a bindable property.

public delegate bool BindableProperty.ValidateValueDelegate(BindableObject bindable, object value);
type BindableProperty.ValidateValueDelegate = delegate of BindableObject * obj -> bool
Public Delegate Function BindableProperty.ValidateValueDelegate(bindable As BindableObject, value As Object) As Boolean 

Parameters

bindable
BindableObject

The BindableObject instance that owns the property.

value
Object

The value to validate.

Return Value

true if the value is valid; otherwise, false.

Remarks

If this delegate returns false, an ArgumentException will be thrown when attempting to set the property to the invalid value.

Applies to