void TryScrollToFooter(LayoutElement element) { LayoutFooter footer = element as LayoutFooter; if (footer == null) { footer = element.GetParentByType <LayoutFooter>(); } if (footer == null) { return; } LayoutPageArea nearestPageArea = ((LayoutPage)footer.Parent).PageAreas.Last; ScrollToPosition(nearestPageArea.Range.Start + nearestPageArea.Range.Length - 1); }
protected override void VisitFooter(LayoutFooter footer) { TryAddElementToCollection(footer, ContentDisplayAction.ScrollTo, true); base.VisitFooter(footer); }
public override void DrawFooter(LayoutFooter footer) { base.DrawFooter(footer); HighlightElement(footer); }
protected override void VisitFooter(LayoutFooter footer) { AddTreeNode(footer, ContentDisplayAction.ScrollTo); base.VisitFooter(footer); }