Bug 43223 - CarouselView does not work on WinRT 2.3.2.118-pre1
Summary: CarouselView does not work on WinRT 2.3.2.118-pre1
Status: RESOLVED FIXED
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: 2.3.2
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Chris King
URL:
Depends on:
Blocks:
 
Reported: 2016-08-10 11:20 UTC by Tobias S.
Modified: 2017-05-05 17:33 UTC (History)
5 users (show)

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


Attachments
Projects for comparison and reproduction (2.79 MB, application/x-zip-compressed)
2016-08-10 11:20 UTC, Tobias S.
Details


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 FIXED

Description Tobias S. 2016-08-10 11:20:43 UTC
Created attachment 16968 [details]
Projects for comparison and reproduction

For reproducing purposes, I used the project from
https://bugzilla.xamarin.com/show_bug.cgi?id=40502

I attached two versions of this project and modified them like this:

version1:
Uses Xamarin.Forms 2.2.0.5-pre-2
Removed all platforms and added WinRT platform
This project works: it starts and displays a CarouselView

version2:
Uses Xamarin.Forms.2.3.2.118-pre1 and Xamarin.Forms.CarouselView.2.3.0-pre2
Removed all platforms and added WinRT platform
This project doesn't work: upon loading the initial view which contains a CarouselView, this exception is thrown:

"Unspecified error:Cannot find a resource with the given key."

   at System.Runtime.InteropServices.WindowsRuntime.IMap`2.Lookup(K key)
   at System.Runtime.InteropServices.WindowsRuntime.MapToDictionaryAdapter.Lookup[K,V](IMap`2 _this, K key)
   at System.Runtime.InteropServices.WindowsRuntime.MapToDictionaryAdapter.Indexer_Get[K,V](K key)
   at Xamarin.Forms.Platform.CarouselViewRenderer.OnElementChanged(ElementChangedEventArgs`1 e)
   at Xamarin.Forms.Platform.WinRT.VisualElementRenderer`2.SetElement(VisualElement element)
   at Xamarin.Forms.Platform.WinRT.Platform.CreateRenderer(VisualElement element)
   at Xamarin.Forms.Platform.WinRT.VisualElementPackager.OnChildAdded(Object sender, ElementEventArgs e)
   at Xamarin.Forms.Platform.WinRT.VisualElementPackager.Load()
   at Xamarin.Forms.Platform.WinRT.VisualElementRenderer`2.SetElement(VisualElement element)
   at Xamarin.Forms.Platform.WinRT.Platform.CreateRenderer(VisualElement element)
   at Xamarin.Forms.Platform.WinRT.VisualElementPackager.OnChildAdded(Object sender, ElementEventArgs e)
   at Xamarin.Forms.Platform.WinRT.VisualElementPackager.Load()
   at Xamarin.Forms.Platform.WinRT.VisualElementRenderer`2.SetElement(VisualElement element)
   at Xamarin.Forms.Platform.WinRT.Platform.CreateRenderer(VisualElement element)
   at Xamarin.Forms.Platform.WinRT.VisualElementExtensions.GetOrCreateRenderer(VisualElement self)
   at Xamarin.Forms.Platform.WinRT.NavigationPageRenderer.SetPage(Page page, Boolean isAnimated, Boolean isPopping)
   at Xamarin.Forms.Platform.WinRT.NavigationPageRenderer.SetElement(VisualElement element)
   at Xamarin.Forms.Platform.WinRT.Platform.CreateRenderer(VisualElement element)
   at Xamarin.Forms.Platform.WinRT.VisualElementExtensions.GetOrCreateRenderer(VisualElement self)
   at Xamarin.Forms.Platform.WinRT.Platform.<SetCurrent>d__44.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)
   at System.Threading.WinRTSynchronizationContext.Invoker.InvokeCore()
Comment 1 Chris King 2017-05-05 17:33:06 UTC
CarouselView to be deprecated and replaced with https://github.com/xamarin/Xamarin.Forms/pull/853