{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/Windows-universal-samples/issues/125","labels_url":"https://api.github.com/repos/Microsoft/Windows-universal-samples/issues/125/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/Windows-universal-samples/issues/125/comments","events_url":"https://api.github.com/repos/Microsoft/Windows-universal-samples/issues/125/events","html_url":"https://github.com/Microsoft/Windows-universal-samples/issues/125","id":100432381,"number":125,"title":"XamlBind sample binds slider that can go to 0 to FontSize, crashes","user":{"login":"MattGal","id":7862010,"avatar_url":"https://avatars.githubusercontent.com/u/7862010?v=3","gravatar_id":"","url":"https://api.github.com/users/MattGal","html_url":"https://github.com/MattGal","followers_url":"https://api.github.com/users/MattGal/followers","following_url":"https://api.github.com/users/MattGal/following{/other_user}","gists_url":"https://api.github.com/users/MattGal/gists{/gist_id}","starred_url":"https://api.github.com/users/MattGal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattGal/subscriptions","organizations_url":"https://api.github.com/users/MattGal/orgs","repos_url":"https://api.github.com/users/MattGal/repos","events_url":"https://api.github.com/users/MattGal/events{/privacy}","received_events_url":"https://api.github.com/users/MattGal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-11T23:16:34Z","updated_at":"2015-08-11T23:16:34Z","closed_at":null,"body":"See Samples\\XamlBind\\cs\\OtherBindings.xaml, possibly other places.\r\n\r\nThis has \r\n\r\n    <Slider Grid.Row=\"1\" Grid.Column=\"1\" Value=\"{x:Bind Model.IntPropertyDP, Mode=TwoWay, Converter={StaticResource IntToDouble}}\" Minimum=\"0\" Maximum=\"100\" />\r\n\r\nbut also \r\n\r\n    <TextBlock Grid.Row=\"3\" Text=\"Text and FontSize are both bound\"/>\r\n    <TextBlock Grid.Row=\"3\" Grid.Column=\"1\" Text=\"{x:Bind LocalTextBox.Text, Mode=OneWay}\" FontSize=\"{x:Bind Model.IntPropWithINPC, Mode=OneWay}\" />\r\n\r\n... meaning whenever users slide the slider to the left, the app crashes. \r\n\r\nCan either fix this quick and dirty (make the slider's value never be 0) or write a special \"minimum value\" converter that sets a value to a specific value (say 1) if it drops too low (say, 0).\r\n\r\n"}}