Skip to content

A sample project using UWP Carousel Control which generate cast exception

Notifications You must be signed in to change notification settings

TheSETJ/Carousel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Carousel

A sample project to test UWP Carousel Control

Found issue:

If Carousel.ItemDepth was not set manually, following exception occurs:

System.InvalidCastException: Unable to cast object of type 'System.Double' to type 'System.Int32'. at Microsoft.Toolkit.Uwp.UI.Controls.Carousel.get_ItemDepth() at Microsoft.Toolkit.Uwp.UI.Controls.CarouselPanel.GetProjectionFromSelectedIndex(Int32 childIndex) at Microsoft.Toolkit.Uwp.UI.Controls.CarouselPanel.ArrangeOverride(Size finalSize)

if Carousel has been put in a auto-sized Row or Column, following exception occurs:

COMException: Error HRESULT E_FAIL has been returned from a call to a COM component.

StackTrace: at Windows.UI.Xaml.UIElement.UpdateLayout() at Microsoft.VisualStudio.DesignTools.UwpDesigner.Views.ViewObjects.WindowsUIXamlViewVisual.UpdateLayout() at Microsoft.VisualStudio.DesignTools.UwpDesigner.Views.WindowsXamlSceneView.UpdateLayoutInternal() at Microsoft.VisualStudio.DesignTools.Designer.Views.SceneView.UpdateLayout()

InnerException: None

About

A sample project using UWP Carousel Control which generate cast exception

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages