Skip to content

Instantly share code, notes, and snippets.

@ameerthehacker
Last active August 25, 2018 18:55
Show Gist options
  • Save ameerthehacker/ebc9878b06cd7a7ca77ce0a9628fa5b7 to your computer and use it in GitHub Desktop.
Save ameerthehacker/ebc9878b06cd7a7ca77ce0a9628fa5b7 to your computer and use it in GitHub Desktop.
using Xamarin.Forms;
using System.Collections.Generic;
namespace XamarinFormValidation.Behaviors
{
public class ValidationGroupBehavior: Behavior<View>
{
IList<ValidationBehavior> _validationBehaviors;
public static readonly BindableProperty IsValidProperty =
BindableProperty.Create("IsValid",
typeof(bool),
typeof(ValidationGroupBehavior),
false);
public ValidationGroupBehavior()
{
_validationBehaviors = new List<ValidationBehavior>();
}
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment