[forms-devel] Resource dictionary KeyNotFoundException improvement

E.Z. Hart ehart at microsoft.com
Mon Jul 18 18:08:55 UTC 2016


Rogier,

That's definitely PR-worthy.

From: forms-devel-bounces at lists.dot.net [mailto:forms-devel-bounces at lists.dot.net] On Behalf Of Rogier van der Hee
Sent: Friday, July 15, 2016 2:44 PM
To: forms-devel at lists.dot.net
Subject: [forms-devel] Resource dictionary KeyNotFoundException improvement

Hi,

I was working the other day with Styling my app and thus utilizing the ResourceDictionary. At some point I tried to access a key that was not present and my app crashed with a KeyNotFoundException.

I had been adding styles like crazy in various projects (app, shared control lib), so it took some time to track down where I called the missing key, because the error message was not telling me which particular key was missing.

I have the key in the message in this commit:
https://github.com/rogihee/Xamarin.Forms/commit/604aa1ca96dd1e18fb10cdde773bdfd3602c15a5

Is this PR worthy ;-)?

Best regards,

Rogier
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dot.net/pipermail/forms-devel/attachments/20160718/c2711174/attachment.html>


More information about the forms-devel mailing list