May 2019
Intermediate to advanced
504 pages
11h 50m
English
Another way to implement behaviors in order to modify default control behavior is to use attached properties to declare a bindable extension to existing controls. This approach is generally used for small behavioral adjustments, such as enabling/disabling other behaviors, as well as adding/removing effects. Let's get started:
public static class Validations { public static readonly BindableProperty ValidateRequiredProperty = BindableProperty.CreateAttached( "ValidateRequired", typeof(bool), typeof(RequiredValidation), false, propertyChanged: OnValidateRequiredChanged); public static bool GetValidateRequired ...Read now
Unlock full access