{"action":"created","issue":{"url":"https://api.github.com/repos/tonysneed/SimpleMvvmToolkit/issues/1","repository_url":"https://api.github.com/repos/tonysneed/SimpleMvvmToolkit","labels_url":"https://api.github.com/repos/tonysneed/SimpleMvvmToolkit/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/tonysneed/SimpleMvvmToolkit/issues/1/comments","events_url":"https://api.github.com/repos/tonysneed/SimpleMvvmToolkit/issues/1/events","html_url":"https://github.com/tonysneed/SimpleMvvmToolkit/issues/1","id":184203074,"number":1,"title":"Validator interfering with IsDirty","user":{"login":"brianke","id":925682,"avatar_url":"https://avatars.githubusercontent.com/u/925682?v=3","gravatar_id":"","url":"https://api.github.com/users/brianke","html_url":"https://github.com/brianke","followers_url":"https://api.github.com/users/brianke/followers","following_url":"https://api.github.com/users/brianke/following{/other_user}","gists_url":"https://api.github.com/users/brianke/gists{/gist_id}","starred_url":"https://api.github.com/users/brianke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianke/subscriptions","organizations_url":"https://api.github.com/users/brianke/orgs","repos_url":"https://api.github.com/users/brianke/repos","events_url":"https://api.github.com/users/brianke/events{/privacy}","received_events_url":"https://api.github.com/users/brianke/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-20T11:24:31Z","updated_at":"2016-11-18T13:08:49Z","closed_at":null,"body":"I have the following TextBox:\n\n```\n<TextBox Name=\"FormulaID_TextBox\"\n                Width=\"50\"\n                Margin=\"0,10,10,10\">\n    <TextBox.Text>\n        <Binding Path=\"SelectedStateRule.ChildSupportRule.FormulaID\" \n                        UpdateSourceTrigger=\"PropertyChanged\">                            \n        </Binding>\n</TextBox.Text>\n```\n\nWhen I run my code with this TextBox everything works as expected, the IsDirty flag is properly changing based on input. \n\nI then add a validator to this textboix as such:\n\n```\n<TextBox Name=\"FormulaID_TextBox\"\n                Width=\"50\"\n                Margin=\"0,10,10,10\">\n    <TextBox.Text>\n        <Binding Path=\"SelectedStateRule.ChildSupportRule.FormulaID\" \n                        UpdateSourceTrigger=\"PropertyChanged\">                            \n            <Binding.ValidationRules>\n                <vm:NumericValidator ValidatesOnTargetUpdated=\"True\" />\n            </Binding.ValidationRules>\n        </Binding>\n</TextBox.Text>\n```\n\n```\n        public override ValidationResult Validate(object value, System.Globalization.CultureInfo cultureInfo)\n        {\n            Decimal _number;\n            if (!Decimal.TryParse((value as string), out _number) && !String.IsNullOrEmpty(value as string))\n            {\n                return new ValidationResult(false, \"Value must be numeric\");\n            }\n\n            return ValidationResult.ValidResult;\n        }\n```\n\nNow, the TextBox changes the IsDirty flag ONLY when the value is valid. If the value is not valid (i.e., 'abc') the IsDirty flag does not change. \n\nIs this intended behavior for the IsDirty flag? Is there something special I need to do to have the IsDirty flag still change even when the value is invalid?\n"},"comment":{"url":"https://api.github.com/repos/tonysneed/SimpleMvvmToolkit/issues/comments/261527841","html_url":"https://github.com/tonysneed/SimpleMvvmToolkit/issues/1#issuecomment-261527841","issue_url":"https://api.github.com/repos/tonysneed/SimpleMvvmToolkit/issues/1","id":261527841,"user":{"login":"tonysneed","id":2836367,"avatar_url":"https://avatars.githubusercontent.com/u/2836367?v=3","gravatar_id":"","url":"https://api.github.com/users/tonysneed","html_url":"https://github.com/tonysneed","followers_url":"https://api.github.com/users/tonysneed/followers","following_url":"https://api.github.com/users/tonysneed/following{/other_user}","gists_url":"https://api.github.com/users/tonysneed/gists{/gist_id}","starred_url":"https://api.github.com/users/tonysneed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tonysneed/subscriptions","organizations_url":"https://api.github.com/users/tonysneed/orgs","repos_url":"https://api.github.com/users/tonysneed/repos","events_url":"https://api.github.com/users/tonysneed/events{/privacy}","received_events_url":"https://api.github.com/users/tonysneed/received_events","type":"User","site_admin":false},"created_at":"2016-11-18T13:08:49Z","updated_at":"2016-11-18T13:08:49Z","body":"I see the behavior you describe .. looking into it."}}
{"actor":{"display_login":"tonysneed"}}