{"action":"created","issue":{"url":"https://api.github.com/repos/xamarin/Xamarin.Forms/issues/1803","repository_url":"https://api.github.com/repos/xamarin/Xamarin.Forms","labels_url":"https://api.github.com/repos/xamarin/Xamarin.Forms/issues/1803/labels{/name}","comments_url":"https://api.github.com/repos/xamarin/Xamarin.Forms/issues/1803/comments","events_url":"https://api.github.com/repos/xamarin/Xamarin.Forms/issues/1803/events","html_url":"https://github.com/xamarin/Xamarin.Forms/issues/1803","id":294733444,"number":1803,"title":"[Enhacement] Add FallbackValue and TargetNullValue properties to BindingBase","user":{"login":"andreinitescu","id":743918,"avatar_url":"https://avatars2.githubusercontent.com/u/743918?v=4","gravatar_id":"","url":"https://api.github.com/users/andreinitescu","html_url":"https://github.com/andreinitescu","followers_url":"https://api.github.com/users/andreinitescu/followers","following_url":"https://api.github.com/users/andreinitescu/following{/other_user}","gists_url":"https://api.github.com/users/andreinitescu/gists{/gist_id}","starred_url":"https://api.github.com/users/andreinitescu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreinitescu/subscriptions","organizations_url":"https://api.github.com/users/andreinitescu/orgs","repos_url":"https://api.github.com/users/andreinitescu/repos","events_url":"https://api.github.com/users/andreinitescu/events{/privacy}","received_events_url":"https://api.github.com/users/andreinitescu/received_events","type":"User","site_admin":false},"labels":[{"id":805050271,"url":"https://api.github.com/repos/xamarin/Xamarin.Forms/labels/a/binding%20%E2%9B%93","name":"a/binding ⛓","color":"7bc427","default":false},{"id":343860853,"url":"https://api.github.com/repos/xamarin/Xamarin.Forms/labels/t/enhancement","name":"t/enhancement","color":"84b6eb","default":false}],"state":"open","locked":false,"assignee":{"login":"StephaneDelcroix","id":313003,"avatar_url":"https://avatars0.githubusercontent.com/u/313003?v=4","gravatar_id":"","url":"https://api.github.com/users/StephaneDelcroix","html_url":"https://github.com/StephaneDelcroix","followers_url":"https://api.github.com/users/StephaneDelcroix/followers","following_url":"https://api.github.com/users/StephaneDelcroix/following{/other_user}","gists_url":"https://api.github.com/users/StephaneDelcroix/gists{/gist_id}","starred_url":"https://api.github.com/users/StephaneDelcroix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephaneDelcroix/subscriptions","organizations_url":"https://api.github.com/users/StephaneDelcroix/orgs","repos_url":"https://api.github.com/users/StephaneDelcroix/repos","events_url":"https://api.github.com/users/StephaneDelcroix/events{/privacy}","received_events_url":"https://api.github.com/users/StephaneDelcroix/received_events","type":"User","site_admin":false},"assignees":[{"login":"StephaneDelcroix","id":313003,"avatar_url":"https://avatars0.githubusercontent.com/u/313003?v=4","gravatar_id":"","url":"https://api.github.com/users/StephaneDelcroix","html_url":"https://github.com/StephaneDelcroix","followers_url":"https://api.github.com/users/StephaneDelcroix/followers","following_url":"https://api.github.com/users/StephaneDelcroix/following{/other_user}","gists_url":"https://api.github.com/users/StephaneDelcroix/gists{/gist_id}","starred_url":"https://api.github.com/users/StephaneDelcroix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephaneDelcroix/subscriptions","organizations_url":"https://api.github.com/users/StephaneDelcroix/orgs","repos_url":"https://api.github.com/users/StephaneDelcroix/repos","events_url":"https://api.github.com/users/StephaneDelcroix/events{/privacy}","received_events_url":"https://api.github.com/users/StephaneDelcroix/received_events","type":"User","site_admin":false}],"milestone":null,"comments":6,"created_at":"2018-02-06T11:58:30Z","updated_at":"2018-05-16T14:39:56Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### Rationale\r\n\r\nThe two binding properties are very handy in situations when the binding is not available or the source is null. It eliminates the need to create value converters or add unnecessary code in the view-model.\r\n\r\n`FallbackValue`:  Gets or sets the value to use when **the binding is unable to return a value**.\r\n`TargetNullValue`:  Gets or sets the value that is used in the target when **the value of the source is null**.\r\n\r\nFirst submitted 4 years ago in 2014: https://bugzilla.xamarin.com/show_bug.cgi?id=22720\r\n\r\nSee their Windows XAML counterparts (_XAML Standard where are thou?_): \r\nhttps://msdn.microsoft.com/en-us/library/system.windows.data.bindingbase.fallbackvalue(v=vs.110).aspx\r\nhttps://msdn.microsoft.com/en-us/library/system.windows.data.bindingbase.targetnullvalue(v=vs.110).aspx\r\n\r\n\r\n### Implementation\r\n\r\nThe `BindingBase` class needs to get the two properties. If they are not set, everything will still work like today.\r\n\r\n### Backward Compatibility\r\n\r\nEverything still works.\r\n"},"comment":{"url":"https://api.github.com/repos/xamarin/Xamarin.Forms/issues/comments/389543379","html_url":"https://github.com/xamarin/Xamarin.Forms/issues/1803#issuecomment-389543379","issue_url":"https://api.github.com/repos/xamarin/Xamarin.Forms/issues/1803","id":389543379,"user":{"login":"StephaneDelcroix","id":313003,"avatar_url":"https://avatars0.githubusercontent.com/u/313003?v=4","gravatar_id":"","url":"https://api.github.com/users/StephaneDelcroix","html_url":"https://github.com/StephaneDelcroix","followers_url":"https://api.github.com/users/StephaneDelcroix/followers","following_url":"https://api.github.com/users/StephaneDelcroix/following{/other_user}","gists_url":"https://api.github.com/users/StephaneDelcroix/gists{/gist_id}","starred_url":"https://api.github.com/users/StephaneDelcroix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StephaneDelcroix/subscriptions","organizations_url":"https://api.github.com/users/StephaneDelcroix/orgs","repos_url":"https://api.github.com/users/StephaneDelcroix/repos","events_url":"https://api.github.com/users/StephaneDelcroix/events{/privacy}","received_events_url":"https://api.github.com/users/StephaneDelcroix/received_events","type":"User","site_admin":false},"created_at":"2018-05-16T14:39:56Z","updated_at":"2018-05-16T14:39:56Z","author_association":"MEMBER","body":"I figured a way to make it non-breaking"}}
{"actor":{"display_login":"StephaneDelcroix"}}