Hello,
An easy way to disable touch events on the parent page when a popup is opened is to control the operability of the page through the Popup's lifecycle events.
You can control the clickability of all elements through the IsEnabled
property of the outermost layout of the parent page. The following is a minimized code example:
xaml:
<VerticalStackLayout x:Name="layout"
in code-behind:
var popup = new MyPopup();
popup.Opened += (s, e) =>
{
layout.IsEnabled = false;
};
popup.Closed += (s, e) =>
{
layout.IsEnabled = true;
};
this.ShowPopup(popup);
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.