Пример #1
0
        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);
        }
Пример #2
0
 protected override void VisitFooter(LayoutFooter footer)
 {
     TryAddElementToCollection(footer, ContentDisplayAction.ScrollTo, true);
     base.VisitFooter(footer);
 }
Пример #3
0
 public override void DrawFooter(LayoutFooter footer)
 {
     base.DrawFooter(footer);
     HighlightElement(footer);
 }
 protected override void VisitFooter(LayoutFooter footer)
 {
     AddTreeNode(footer, ContentDisplayAction.ScrollTo);
     base.VisitFooter(footer);
 }