ComponentFactory.Krypton.Toolkit.ViewLayoutFill.Layout C# (CSharp) Method

Layout() public method

Perform a layout of the elements.
public Layout ( ViewLayoutContext context ) : void
context ViewLayoutContext Layout context.
return void
        public override void Layout(ViewLayoutContext context)
        {
            Debug.Assert(context != null);

            // We take on all the available display area
            ClientRectangle = context.DisplayRectangle;

            // Cache the fill rectangle
            _fillRect = ClientRectangle;

            // Reduce the fill rectangle to account for the display padding
            _fillRect = CommonHelper.ApplyPadding(Orientation.Horizontal, _fillRect, DisplayPadding);

            // We let the OnLayout override for the control perform the
            // actually positioning of the fill contents.
        }