I don't know if it is something we are doing wrong or if it the control itself.
When you open several nodes the process hits levels of 40%-50%.
I ran the profiler while viewing the TreeView. It shows that the node expanders are continually refreshing.
I'm deducting that the loading animation begins but does not stop. It looks like the screen is refreshing even in when the animation's visibility is not visible. I don't know if it is a fact that the screen is trying to refresh because of the loading animation, but it seems like it.
In the template, the trigger is defined:
If what I stated above is true, wouldn't you need to add and ExitAction like:
Have you seen this behavior? Am I missing something?
Thanks
When you open several nodes the process hits levels of 40%-50%.
I ran the profiler while viewing the TreeView. It shows that the node expanders are continually refreshing.
I'm deducting that the loading animation begins but does not stop. It looks like the screen is refreshing even in when the animation's visibility is not visible. I don't know if it is a fact that the screen is trying to refresh because of the loading animation, but it seems like it.
In the template, the trigger is defined:
<Trigger Property="IsLoadingOnDemand" Value="True"> |
<Trigger.EnterActions> |
<BeginStoryboard> |
<Storyboard> |
<DoubleAnimation Duration="00:00:01" RepeatBehavior="Forever" Storyboard.TargetName="LoadingVisualAngleTransform" Storyboard.TargetProperty="Angle" From="0" To="359"/> |
</Storyboard> |
</BeginStoryboard> |
</Trigger.EnterActions> |
<Setter Property="Visibility" TargetName="LoadingVisual" Value="Visible"/> |
<Setter Property="Visibility" TargetName="Expander" Value="Collapsed"/> |
</Trigger> |
If what I stated above is true, wouldn't you need to add and ExitAction like:
<Trigger Property="IsLoadingOnDemand" Value="True"> |
<Trigger.EnterActions> |
<BeginStoryboard> |
<Storyboard x:Name="NodeLoadingStoryboard"> |
<DoubleAnimation Duration="00:00:01" RepeatBehavior="Forever" Storyboard.TargetName="LoadingVisualAngleTransform" Storyboard.TargetProperty="Angle" From="0" To="359"/> |
</Storyboard> |
</BeginStoryboard> |
</Trigger.EnterActions> |
<Trigger.ExitActions> |
<StopStoryboard BeginStoryboardName="NodeLoadingStoryboard" /> |
</Trigger.ExitActions> |
<Setter Property="Visibility" TargetName="LoadingVisual" Value="Visible"/> |
<Setter Property="Visibility" TargetName="Expander" Value="Collapsed"/> |
</Trigger> |
Have you seen this behavior? Am I missing something?
Thanks