Bug 40830 - AppLinkEntry.KeyValues collection is always empty
Summary: AppLinkEntry.KeyValues collection is always empty
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 2.3.0
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Rui Marinho
Depends on:
Reported: 2016-05-03 16:18 UTC by David Britch
Modified: 2016-07-07 16:49 UTC (History)
5 users (show)

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:

Description David Britch 2016-05-03 16:18:10 UTC
Given the following code:

			var pageType = GetType ().ToString ();
			var pageLink = new AppLinkEntry {
				Title = item.Name,
				Description = item.Notes,
				AppLinkUri = new Uri (string.Format ("http://{0}/{1}", App.AppName, pageType), UriKind.RelativeOrAbsolute),
				IsLinkActive = true,
				Thumbnail = ImageSource.FromFile ("monkey.png")
			pageLink.KeyValues.Add ("contentType", "TodoItemPage");
			pageLink.KeyValues.Add ("appName", App.AppName);
			pageLink.KeyValues.Add ("companyName", "Xamarin");

The debugger always shows the pageLink.KeyValues collection as size 0.
Comment 1 Rui Marinho 2016-05-25 13:59:47 UTC
Should be fixed in 2.3.0-pre3