public ValidatorItem(Expression <Func <T, object> > memberLambda, FrameworkElement control)
        {
            _kind = ValidatorItemKind.ViewModelProperty;

            _memberLambda  = memberLambda;
            _property_name = LambdaHelper.GetMemberName(memberLambda.Body);

            if (control is FormField)
            {
                _control   = null;
                _formfield = (FormField)control;
            }
            else
            {
                // FindParent returns null if not found.
                _control   = control;
                _formfield = VenturaVisualTreeHelper.FindParent <FormField>(control);
            }
        }
        public ValidatorItem(string validator_id, FrameworkElement control)
        {
            if (validator_id == null)
            {
                throw new ArgumentNullException(nameof(validator_id));
            }

            _kind = ValidatorItemKind.ValidatorId;

            _validator_id = validator_id;

            if (control is FormField)
            {
                _control   = null;
                _formfield = (FormField)control;
            }
            else
            {
                // FindParent returns null if not found.
                _control   = control;
                _formfield = VenturaVisualTreeHelper.FindParent <FormField>(control);
            }
        }