Stange Warning And Stack Overflow When Using TreeView Inside A DropDownButton

3 posts, 0 answers
  1. george
    george avatar
    2 posts
    Member since:
    Jul 2017

    Posted 07 Jul 2017 Link to this post

    I'm getting the following Warning, preceded by a Stack Overflow Exception whenever I click on any of the items in my TreeView, which is inside a DropDownButton.

    System.Windows.Media.Animation Warning: 6 : Unable to perform action because the specified Storyboard was never applied to this object for interactive control.; Action='Stop'; Storyboard='System.Windows.Media.Animation.Storyboard'; Storyboard.HashCode='55034768'; Storyboard.Type='System.Windows.Media.Animation.Storyboard'; TargetElement='System.Windows.Media.Animation.Storyboard'; TargetElement.HashCode='55034768'; TargetElement.Type='System.Windows.Media.Animation.Storyboard'


    And my XAML:

                        <telerik:RadTreeView ItemsSource="{Binding ProjAreaPaths}"
                                             SelectedItem="{Binding Path=AreaPath, Mode=TwoWay}"
                                             ItemContainerStyle="{StaticResource RedStyle}">
                                <HierarchicalDataTemplate ItemsSource="{Binding ChildNodes}"
                                                          ItemContainerStyle="{StaticResource GreenStyle}">
                                    <TextBlock Text="{Binding Name}"/>

  2. Martin Ivanov
    Martin Ivanov avatar
    2420 posts

    Posted 12 Jul 2017 Link to this post

    Hello George,

    I tested your code, but I wasn't able to reproduce the reported error. Can you share some runnable code demonstrating the issue?

    As a side note, I don't think the storyboard error shown in the Output is related to the StackOverflow exception. This warning appears in some cases, but it doesn't affect the treeview proper running.

    Martin Ivanov
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
  3. george
    george avatar
    2 posts
    Member since:
    Jul 2017

    Posted 12 Jul 2017 in reply to Martin Ivanov Link to this post

    Hi Martin,


    I am at a complete loss as for what to say. I never managed to diagnose the cause but the exception no longer occurs, I simply cannot replicate my previous error.


    Thank you I did eventually realise that the warning was unrelated.


    Thank you for your reply, and apologies for wasting your time it would seem!




Back to Top