question

barrywang0526 avatar image
0 Votes"
barrywang0526 asked ·

[Bug Report]We still can trigger event behind a popup

We seems like found a bug from our app. Here are the reproduce steps:


  • Create a Page called PopPage, only set it's page's background to yellow,then set the grid:




  • On the calling page create a button and write it's event like this:

     private void Button_Click(object sender, RoutedEventArgs e)
             {
                 PopPage popPage = new PopPage();
                 Popup popup = new Popup();
                 popup.Child = popPage;
                 popup.IsOpen = true;
             }
    

When the popup is out, you can find that you can still use VS to see the button although you cannot see it:
alt text

In our project. We have lots of buttons behind the popup and we can still trigger the event from the behind. To solve this problem we find that we have to set the background of Grid. So why this happens? Is it a bug?






windows-uwpwindows-uwp-xaml
demo.jpg (34.4 KiB)
· 1
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Well. I cannot insert xaml code properly...

0 Votes 0 · ·
RoyLi-MSFT avatar image
0 Votes"
RoyLi-MSFT answered ·

Hello,​

Welcome to our Microsoft Q&A platform!

Thank you for reporting this here! We've reported this issue via our internal channel. It's glad to hear that you've found a way to overcome it and share it here.

Besides, if you want to insert the xaml code, you could try to post it as a normal text.

Thanks!

· 2 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you Roy. Can you help us confirm whether this is a known issue once you've got any feedback?

0 Votes 0 · ·

I haven't got a response here. I'll come back as soon as I get a response.

0 Votes 0 · ·
pituach avatar image
0 Votes"
pituach answered ·

Good day @barrywang0526 ,

This is not a bug but a design issue from your side. There is no reason to disable all entities once you use popup. It might fit your specific needs, but it is much simpler to control and disable entities then to redesign the app to have new entities for these who need them to continue to work.

You should remember that popup does not necessarily cover the entire screen(s) and in many cases we want to work on the main page during the popup

The solution is dimply disable the entities which you do not want the user to use while the popup is not up

· 1 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@pituach ,

Many thanks for this reply. And yep I can understand that there is no reason to disable all entities once we use popup. But what confused me is that
why just setting the color of the page cannot disable the back controls but setting the color of the grid will disable the back controls. Maybe you haven't understand my question.

Our app design actually has problems, I totally agree with this. The designers are trying to avoid using entire life memory so for some pages they designed popup instead of a common page. But in this way, the popups should work like a common page. So we do not allow the behind page to have events. (This is a touch pad project for banks. So everything is designed by ourselves, even the input keyboard.)

Anyway, actually as setting the background of the grid works for us, we don't need to care about this problem. I raise this question since I don't think the behavior is right. Setting page/grid should be the same since we already set the color

0 Votes 0 · ·