Пример #1
0
 /// <inheritdoc/>
 protected override Size ArrangeOverride(Size finalSize)
 {
     return(LayoutHelper.ArrangeChild(Child, finalSize, Padding));
 }
Пример #2
0
        /// <summary>
        /// Arranges the control's child.
        /// </summary>
        /// <param name="finalSize">The size allocated to the control.</param>
        /// <returns>The space taken.</returns>
        protected override Size ArrangeOverride(Size finalSize)
        {
            _borderRenderHelper.Update(finalSize, BorderThickness, CornerRadius);

            return(LayoutHelper.ArrangeChild(Child, finalSize, Padding, BorderThickness));
        }
Пример #3
0
        /// <summary>
        /// Arranges the control's child.
        /// </summary>
        /// <param name="finalSize">The size allocated to the control.</param>
        /// <returns>The space taken.</returns>
        protected override Size ArrangeOverride(Size finalSize)
        {
            _shadowRenderHelper.Update(finalSize, Depth, Extent, CornerRadius);

            return(LayoutHelper.ArrangeChild(Child, finalSize, Padding, ZeroThickness));
        }