Exemplo n.º 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);
        }
Exemplo n.º 2
0
 protected override void VisitFooter(LayoutFooter footer)
 {
     TryAddElementToCollection(footer, ContentDisplayAction.ScrollTo, true);
     base.VisitFooter(footer);
 }
Exemplo n.º 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);
 }