LightStone icon indicating copy to clipboard operation
LightStone copied to clipboard

Crash when parent is StackPanel

Open SolveSoul opened this issue 8 years ago • 1 comments

The control crashes when any parent of the control is a StackPanel. The given error is not very helpful... The exception message is:

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

its type is:

Windows.UI.Xaml.UnhandledExceptionEventArgs

The XAML is as follows:

            <StackPanel>
                <ctrl:LightStone ItemsSource="{Binding Datas}" 
                        SelectedIndex="0"
                        ItemTemplate="{StaticResource TemplateFullScreen}"
                        TransitionDuration="300" 
                        Depth="200" 
                        MaxVisibleItems="4"
                        x:Name="LightStoneElement"
                        Rotation="50" 
                        TranslateY="280"
                        TranslateX ="100">
                    <ctrl:LightStone.EasingFunction>
                        <CubicEase EasingMode="EaseOut" />
                    </ctrl:LightStone.EasingFunction>

                </ctrl:LightStone>
            </StackPanel>

To reproduce this error you can simply wrap the LightStone control inside a StackPanel in the sample. I've only tested this on Windows, not Windows Phone.

SolveSoul avatar Dec 02 '15 15:12 SolveSoul