This is a migrated thread and some comments may be shown as answers.

Stange Warning And Stack Overflow When Using TreeView Inside A DropDownButton

2 Answers 163 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
george
Top achievements
Rank 1
george asked on 07 Jul 2017, 11:42 AM

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:RadDropDownButton.DropDownContent>
                    <telerik:RadTreeView ItemsSource="{Binding ProjAreaPaths}"
                                         SelectedItem="{Binding Path=AreaPath, Mode=TwoWay}"
                                         ItemContainerStyle="{StaticResource RedStyle}">
                        <telerik:RadTreeView.ItemTemplate>
                            <HierarchicalDataTemplate ItemsSource="{Binding ChildNodes}"
                                                      ItemContainerStyle="{StaticResource GreenStyle}">
                                <TextBlock Text="{Binding Name}"/>
                            </HierarchicalDataTemplate>
                        </telerik:RadTreeView.ItemTemplate>
                    </telerik:RadTreeView>
                </telerik:RadDropDownButton.DropDownContent>
            </telerik:RadDropDownButton>

2 Answers, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 12 Jul 2017, 08:39 AM
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.

Regards,
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.
0
george
Top achievements
Rank 1
answered on 12 Jul 2017, 08:59 AM

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!

 

Regards,

George

Tags
TreeView
Asked by
george
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
george
Top achievements
Rank 1
Share this question
or