BindableProperty.ValidateValueDelegate Delegate
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.