为什么页面导航后会调用resize事件? [英] Why is resize event fired after page navigation?

查看:79
本文介绍了为什么页面导航后会调用resize事件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在页面中创建了一些附加到"调整大小"的自定义控件。事件。在处理程序中,此控件根据快照或全屏模式调整其布局。问题在于"调整大小"。单击后退按钮后触发事件或
导航到其他页面。  为什么会被解雇?这是一个错误吗?

I have created some custom controls into a Page that are attached to the "resize" event. In the handler this controls are adapting its layout according to snap or fullscreen mode. The problem is that "resize" event is fired after click on back button or navigating to other page.  Why is it event fired? Is it a bug?

谢谢。

Thanks.

推荐答案

这不是错误,

您必须布局HTML并调用大小调整。 为什么这对你来说是一个问题? 您能否详细说明您要解决的问题以及为什么这会阻止您提供解决方案?

You have to layout the HTML and resize is called.  Why is this a problem for you?  Can you give more details about the problem you are trying to solve and why this prevents your from providing a solution?

-Jeff


这篇关于为什么页面导航后会调用resize事件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆