开发者

Going back from a user control

开发者 https://www.devze.com 2023-02-24 06:51 出处:网络
I\'m developing a Windows Phone开发者_Go百科 7 app. I have a page: PageOne or Main page. PageOne has an hidden user control, UC1. This UC1 is shown if need it.

I'm developing a Windows Phone开发者_Go百科 7 app.

I have a page: PageOne or Main page.

PageOne has an hidden user control, UC1. This UC1 is shown if need it. UC1 has a listbox with several choices. When user select a choice, UC1 will show another user control, UC2. In other words, UC1 has a hidden UC2 control.

I want, from UC2, hide UC2 and UC1 control. How can I do that? Can I use an event listener on UC1 to know when I can hide UC2 and UC1?

Any advice?


You could have UC2 send a message back to the page hosting UC1 and then hide UC1 in response to that message.

0

精彩评论

暂无评论...
验证码 换一张
取 消