private Extents groupFooterMargin;
private GroupInfo Visited;
private Timer requestLayoutTimer = null;
+ private bool isSourceEmpty;
/// <summary>
/// Clean up ItemsLayouter.
colView.UnrealizeItem(footer);
}
+ if (pureCount == 0)
+ {
+ isSourceEmpty = true;
+ return;
+ }
+ isSourceEmpty = false;
+
int firstIndex = header? 1 : 0;
if (colView.IsGrouped)
{
// Insert Single item.
if (source == null) throw new ArgumentNullException(nameof(source));
+ if (isSourceEmpty)
+ {
+ Initialize(colView);
+ }
// Will be null if not a group.
float currentSize = 0;
{
// Insert Group
if (source == null) throw new ArgumentNullException(nameof(source));
+ if (isSourceEmpty)
+ {
+ Initialize(colView);
+ }
float currentSize = 0;
// Will be null if not a group.
private Extents groupFooterMargin;
private GroupInfo Visited;
private Timer requestLayoutTimer = null;
+ private bool isSourceEmpty;
/// <summary>
/// Clean up ItemsLayouter.
else hasFooter = false;
//No Internal Source exist.
- if (count == (hasHeader? (hasFooter? 2 : 1) : 0)) return;
+ if (count == (hasHeader? (hasFooter? 2 : 1) : 0))
+ {
+ isSourceEmpty = true;
+ return;
+ }
+ isSourceEmpty = false;
int firstIndex = hasHeader? 1 : 0;
// Insert Single item.
if (source == null) throw new ArgumentNullException(nameof(source));
+ if (isSourceEmpty)
+ {
+ Initialize(colView);
+ }
+
// Will be null if not a group.
float currentSize = StepCandidate;
IGroupableItemSource gSource = source as IGroupableItemSource;
// Insert Group
if (source == null) throw new ArgumentNullException(nameof(source));
+ if (isSourceEmpty)
+ {
+ Initialize(colView);
+ }
+
float currentSize = StepCandidate;
// Will be null if not a group.
IGroupableItemSource gSource = source as IGroupableItemSource;