0
Answer

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

pm

pm

12y
2.7k
1
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
        }