Exception:UIElement.Measure(availableSize) cannot be called with NaN size.