public void OnCompleted()
        {
            m_adapter.UpdateSources(m_groups, m_groupsExpandable, m_groupToChildren);

            if (m_groupIndex >= 0)
            {
                var startIndex = m_adapter.CalcFirstChildIndex(m_groupIndex);

                var itemsToAnimate = m_adapter.GetListBoxItemsInRange(startIndex, m_itemCount);

                if (itemsToAnimate.Any())
                {
                    var controls = m_adapter.ChildStackPanelsFor(itemsToAnimate);

                    m_adapter.GetSlideInStoryboardRunner().Begin(itemsToAnimate);
                    m_adapter.GetItemShutterOpenStoryboardRunner().Begin(controls);
                }
            }

            m_adapter.GetSlideOutStoryboardRunner().AllCompleted -= this.OnCompleted;
        }
Ejemplo n.º 2
0
 public void OnCompleted()
 {
     m_adapter.UpdateSources(m_groups, m_groupsExpandable, m_groupToChildren);
 }