Example #1
0
        protected override Size ArrangeOverride(Size finalSize)
        {
            if (pivot != null)
            {
                pivot.Arrange(new Rect(0, 0, finalSize.Width, finalSize.Height));
            }

            return(finalSize);
        }
Example #2
0
        public void When_Empty()
        {
            var SUT = new Pivot()
            {
                Name = "test"
            };

            var grid = new Grid();

            grid.Children.Add(SUT);
            grid.ForceLoaded();

            SUT.Measure(default(Size));
            SUT.Arrange(default(Rect));

            Assert.AreEqual(default(Size), SUT.DesiredSize);
        }