Silverlight控件一次又一次地重新初始化 [英] Silverlight control getting re-initialized again and again

查看:107
本文介绍了Silverlight控件一次又一次地重新初始化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Silverlight控件来显示搜索网格,它是选项卡的一部分(Ajax选项卡控件)。当用户搜索他的项目时,他需要点击其中一个搜索项目,另一个选项卡将打开以显示该项目的详细信息,用户可以更新
某些内容。

I am using Silverlight control to display a search grid and it is part of a tab (Ajax tab control). As user searches for his item he needs to click on one of searched item and another tab will open to diplay the details of the item where user can update certain things.

现在我在这里遇到的问题是 -   Silverlight控件正在重新初始化,因为新选项卡正在打开或任何按钮点击正在发生,无论部分和完整回发。我需要停止重新初始化silverlight网格
,因为当时用户正在丢失所有内容,并且UI明智地也会产生负面影响。

Now the issue I am facing here is - the silverlight control is getting re-initialized as a new tab is getting opened or any button click is happening irrespective of partial and full post back. I need to stop this re-initialization of silverlight grid as the user is losing everything at that moment and UI wise also it is giving a negative impact.

如果有人有任何关于这个的建议然后请告诉我。

If someone has any suggestion on this then please let me know.

推荐答案

您好,您可以在初始化代码中创建一个断点并调试它,然后你将意识到何时以及为何一次又一次地重新初始化。

Hi, you can make a breakpoint in the initialization code and debug it, then you will realize when and why it be re-initialized again and again.


这篇关于Silverlight控件一次又一次地重新初始化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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