protected override Size ArrangeOverride(Size finalSize) { if (pivot != null) { pivot.Arrange(new Rect(0, 0, finalSize.Width, finalSize.Height)); } return(finalSize); }
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); }