protected void OnDropIndicatorHeightChanged(DependencyPropertyChangedEventArgs e)
{
Panel rootPanel = (Panel)VisualTreeHelper.GetChild(this, 0);
VisualStateGroup vsg = ReorderListBoxItem.GetVisualStateGroup(
rootPanel, ReorderListBoxItem.DropIndicatorStateGroup);
if (vsg != null)
{
foreach (VisualState vs in vsg.States)
{
foreach (Timeline animation in vs.Storyboard.Children)
{
this.UpdateDropIndicatorAnimationHeight((double)e.NewValue, animation);
}
}
foreach (VisualTransition vt in vsg.Transitions)
{
foreach (Timeline animation in vt.Storyboard.Children)
{
this.UpdateDropIndicatorAnimationHeight((double)e.NewValue, animation);
}
}
}
}