Skip to main content

BindingValue<T> Methods

Methods

BindingError(Exception)Returns a binding value with a type of BindingError.
BindingError(Exception, T)Returns a binding value with a type of BindingErrorWithFallback.
BindingError(Exception, Optional(T))Returns a binding value with a type of BindingError or BindingErrorWithFallback.
DataValidationError(Exception)Returns a binding value with a type of DataValidationError.
DataValidationError(Exception, T)Returns a binding value with a type of DataValidationErrorWithFallback.
DataValidationError(Exception, Optional(T))Returns a binding value with a type of DataValidationError or DataValidationErrorWithFallback.
FromUntyped(Object)Creates a BindingValue(T) from an object, handling the special values UnsetValue, DoNothing and BindingNotification.
FromUntyped(Object, Type)Creates a BindingValue(T) from an object, handling the special values UnsetValue, DoNothing and BindingNotification.
GetType()Gets the Type of the current instance.
(Inherited from Object)
GetValueOrDefault()Gets the value of the binding value if present, otherwise the default value.
GetValueOrDefault(T)Gets the value of the binding value if present, otherwise a default value.
GetValueOrDefault(TResult)()Gets the value if present, otherwise the default value.
GetValueOrDefault(TResult)(TResult)Gets the value of the binding value if present, otherwise a default value.
ToOptional()Converts the binding value to an Optional(T).
ToString()Returns the fully qualified type name of this instance.
(Overrides ValueType.ToString())
ToUntyped()Converts the value to untyped representation, using UnsetValue, DoNothing and BindingNotification where appropriate.
WithValue(T)Returns a new binding value with the specified value.

See Also

Reference

BindingValue(T) Structure
Avalonia.Data Namespace