[forms-devel] Resource dictionary KeyNotFoundException improvement

Rogier van der Hee rogier at zoidbergsolutions.nl
Fri Jul 15 20:44:16 UTC 2016


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/604aa1ca96dd1e18fb10cdde773b
dfd3602c15a5 

 

Is this PR worthy ;-)?

 

Best regards,

 

Rogier

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dot.net/pipermail/forms-devel/attachments/20160715/413fd2ff/attachment.html>


More information about the forms-devel mailing list