WPF Microsoft Visual Studio XAML designer is busy

image

 

 

image

 

public MainVM()
{
    Task.Run(async () =>
    {
        await InitBooksCollectionAsync();
    });         


    InitCmds(); 
}

 

When in designer mode it executes the ViewModel constructor too.

While the designer process is sub process of Visual Stuido with limited resource, memory, lower render priority and is very easy to be blocked when loaded large data.

 

The solution is to judge desiger mode at first. Only not designer mode can load huge data

 

posted @ 2026-05-19 17:48  FredGrit  阅读(4)  评论(0)    收藏  举报