예제 #1
0
            protected sealed override void OnDraw(Context ctx, Rectangle dirtyRect)
            {
                var borderBounds = BorderAllocation;

                Theme.RenderBackground(ctx, borderBounds, Theme.TargetPosition);
                ctx.Save();

                var contentBounds = borderBounds.Inflate(-Theme.Padding, -Theme.Padding);

                ctx.MoveTo(contentBounds.Location);
                ParentWindow.HandleDrawContent(ctx, contentBounds, Bounds);
                base.OnDraw(ctx, dirtyRect);

                ctx.Restore();
                if (Theme.DrawPager)
                {
                    Theme.RenderPager(ctx, borderBounds);
                }

                Theme.RenderBorder(ctx, borderBounds, Theme.TargetPosition);
                Theme.RenderShadow(ctx, borderBounds, Theme.TargetPosition);
            }