Bug 51164 - TargetNullValue / FallbackValue doesn't work
Summary: TargetNullValue / FallbackValue doesn't work
Status: RESOLVED FEATURE
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: unspecified
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2016-12-31 02:37 UTC by Neil
Modified: 2018-01-12 21:37 UTC (History)
5 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FEATURE

Description Neil 2016-12-31 02:37:31 UTC
According to the following bug report, it's been added, but we still don't have it (I'm on Xamarin 4.2.2.6-cycle8+27a9b40):

https://bugzilla.xamarin.com/show_bug.cgi?id=22720

Usage example:

<ImageCell Text="{Binding LinkedProduct.ProductName, TargetNullValue='No Product Entered'}" />

The FallbackValue property also does not work.
Comment 1 E.Z. Hart [MSFT] 2017-02-14 19:53:31 UTC
Neil,

We apologize, issue 22720 was incorrect. It should have been marked as RESOLVED ANSWERED, not RESOLVED FEATURE. 

There is a pull request related to this feature, but it is not yet part of Xamarin Forms: https://github.com/xamarin/Xamarin.Forms/pull/664
Comment 2 Stephane Delcroix 2017-06-19 20:01:32 UTC
Xamarin.Forms doesn't supports TargetNullValue or FallbackValue in it's binding system. We might support it in a future release, but it's not in the short term plans.