Open pYThMik opened 7 years ago
Can you share the XAML you are trying to preview? (if you prefer just send it by email to l r o d r i g u e z at uxdivers.com)
Hi. I just encounterd the same error in another Xamarin.Forms project. I discovered why: The MyPage.xaml I'm previewing contains a listview whose items are defined by MyItemTemplate.xaml. And MyItemTemplate.xaml contains a listview too, with another MyOtherItemTemplate.xaml.
Both Item Templates are perfectly previewed in gorilla. But MyPage throws this exception:
Error loading XAML [pre] The reported error: System.ArgumentException: A resource with the key 'TestObject' is already present in the resourcedictionary. at Xamarin.Forms.ResourceDictionary.Add(System.String key, System.Object value) ...
If I remove the Listview in MyItemTemplate, it works. I guess Gorilla 'crashes' when 2 listviews are nested.
I have a few pages that works nicely. This tool is of great help. But for one particular XAML page, I get the following error: Error loading XAML [pre] ArgumentException. A resource with the key 'TestObject' is already present in the resourcedictionary.
My web searches about this issue gave no result. Any ideas ? Thanks