if (__pProviderAdaptor != null && __modelInitialized)
{
+ StopExpandCollapseAnimation();
+
if (__pTableView->IsReorderModeEnabled() && __reorderInfo.itemIndex != -1)
{
ResetReorderItem(__reorderInfo.groupIndex, __reorderInfo.itemIndex);
__sweepOccured = false;
- _VisualElement* pVisualElement = __pTableView->GetVisualElement();
- String animationName(L"EXPAND_GROUP_ANIMATION");
- VisualElementValueAnimation* pExpandGroupAnimation = dynamic_cast<VisualElementValueAnimation*>(pVisualElement->GetAnimationN(animationName));
- if (pExpandGroupAnimation != null)
- {
- pVisualElement->RemoveAnimation(animationName);
- delete pExpandGroupAnimation;
- }
-
- animationName = L"COLLAPSE_GROUP_ANIMATION";
- VisualElementValueAnimation* pCollapseGroupAnimation = dynamic_cast<VisualElementValueAnimation*>(pVisualElement->GetAnimationN(animationName));
- if (pCollapseGroupAnimation != null)
- {
- pVisualElement->RemoveAnimation(animationName);
- delete pCollapseGroupAnimation;
- }
+ StopExpandCollapseAnimation();
return _ScrollPanelPresenter::OnTouchPressed(source, touchInfo);
}
return __pListModel->IsGroupExpanded(groupIndex);
}
+void
+_TableViewPresenter::StopExpandCollapseAnimation(void)
+{
+ _VisualElement* pVisualElement = __pTableView->GetVisualElement();
+ String animationName(L"EXPAND_GROUP_ANIMATION");
+ VisualElementValueAnimation* pExpandGroupAnimation = dynamic_cast<VisualElementValueAnimation*>(pVisualElement->GetAnimationN(animationName));
+ if (pExpandGroupAnimation != null)
+ {
+ pVisualElement->RemoveAnimation(animationName);
+ delete pExpandGroupAnimation;
+ }
+
+ animationName = L"COLLAPSE_GROUP_ANIMATION";
+ VisualElementValueAnimation* pCollapseGroupAnimation = dynamic_cast<VisualElementValueAnimation*>(pVisualElement->GetAnimationN(animationName));
+ if (pCollapseGroupAnimation != null)
+ {
+ pVisualElement->RemoveAnimation(animationName);
+ delete pCollapseGroupAnimation;
+ }
+}
+
int
_TableViewPresenter::LoadAllItemsInGroup(int groupIndex, bool downward)
{