Esempio n. 1
0
        private Point GetOffset(BoxConstraint constraint)
        {
            var c = Child.Measure(constraint.Loosen());

            int x = HorizontalAlignment.GetOffset(constraint.MinWidth, c.Width);

            int y = VerticalAlignment.GetOffset(constraint.MinHeight, c.Height);

            return(new Point(x, y));
        }