* [NUI] Initialize CollectionView when scrolling direction changed.
if scrolling direction is changed,
all layout need to be updated and initialized.
* [NUI] remove unnecessary layout calculate call.
}
set
{
- base.ScrollingDirection = value;
-
- if (ScrollingDirection == Direction.Horizontal)
- {
- ContentContainer.SizeWidth = ItemsLayouter.CalculateLayoutOrientationSize();
- }
- else
+ if (base.ScrollingDirection != value)
{
- ContentContainer.SizeHeight = ItemsLayouter.CalculateLayoutOrientationSize();
+ base.ScrollingDirection = value;
+ needInitalizeLayouter = true;
+ Init();
}
}
}