A Microsoft platform for building and publishing apps for Windows devices.
Hello,
Welcome to Microsoft Q&A Case.
You could try to add a flag between the loading process which rendering the detailed pane, and cancel or return the loading process when the selection changed in ListView.
There is a simple code you could refer to:
bool flag = false;
private async void listView_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if(flag==false)
{
flag = true;
}
else if(flag==true)
{
flag = false;
return;
}
RenderUi();
}
You could try another more complex flag to do the job, and you could try to put the return code(or other way to cancel the loading process) in the proper location as needed.
If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.