创建 silverlight 页面期间触发的最后一个事件是什么
我知道这似乎是一个奇怪的问题,但我正在寻找标题中查询的信息。
到目前为止,我已经尝试过 LayoutRoot.Loaded,但发现 LayoutRoot.LayoutUpdated 发生得更晚。
我学习这一知识的动机是能够让一个组件在代码中与另一个组件交互,但要实现这一点,我必须保证它们都存在。
有什么想法吗?
澄清我正在尝试做的事情:
我有一个折叠的 gridsplitter 控件。 从这里开始
当主页加载时,我将其折叠起来;它将其前面的对象缩小到宽度 0。如果该对象尚未“加载”,则它不会折叠,并且 gridsplitter 处于一种奇怪的状态,它认为它已折叠该项目,但需要单击两次才能有效地执行此操作。
I know this may seem like an odd question, but I am after the information queried in the title.
So far I have tried LayoutRoot.Loaded, but found that LayoutRoot.LayoutUpdated happens even later.
My motivation for this knowledge is the ability to have one component interact with another in code, but for this to happen I must be guaranteed they both exist.
Any ideas?
Clarification of what I'm attempting to do:
I have a collapsing gridsplitter control. From here
When the main page loads I make it collapse; which shrinks the object preceding it to width 0. If that object isn't 'loaded' yet then it doesn't collapse and the gridsplitter is in an odd state where it thinks it has collapsed the item but needs two clicks to effectively do that.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
LayoutUpdated
是控制对象初始化时间线中引发的最后一个事件。但请记住,随后将根据需要多次引发 LayoutUpdated。也许您可以分享更多关于您正在尝试做的事情的细节。LayoutUpdated
is the last event raised in the control object initialization timeline. However keep in mind that LayoutUpdated will be raised multiple time subsequently as required. Maybe you can share a little more detail on what you are trying to do.