I have failed to pass the Popup page to the View Model and so I have changed to using a click event with code behind as shown in the Community Toolkit documentation. Although this means abandoning MVVM for this page, it does work perfectly with no remaining questions or problems. I am surprised that no mention of MVVM is made in the Popup documentation and this suggests to me that there may be an underlying problem when used with .Net9.