0
Answer

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

Photo of pm

pm

13y
2.7k
1 Tutorials
how to handle this UIElement.Measure(availableSize) cannot be called with NaN size .

 and i am facing this ,when opening a telerik radwindow in wpf viewmodel




   private void ReceivedMessageShowWindow(string msg)
        {
           
                var Window = new Window(msg)
                                             {
                                                 WindowStartupLocation = WindowStartupLocation.CenterScreen,
                                             };
                Window.ShowDialog();///******here comes UIElement.Measure(availableSize) cannot be called with NaN size
        }