确保 Flex 组件在开始时加载

发布于 2024-08-15 20:34:43 字数 172 浏览 3 评论 0原文

如何确保所有组件(即使是那些在开始时不可见的组件)在启动应用程序时立即加载?

我有一个带有 ViewStack 的应用程序,其可见子项是通过侧边栏菜单设置的。假设 ViewStack 有两个子视图,A 和 B。A 最初是可见的,而 B 不可见。我如何确保它们都在开始时加载,以便当我更改为 BI 时不必等待它加载?

How can I make sure all the components, even those that are not going to be visible at the beginning, load right away when I start my application?

I have an application with a ViewStack whose visible child is set via a sidebar menu. Say the ViewStack has two children, A and B. A is initially visible, whereas B is not. How can I make sure they both load at the beginning, so that when I change to B I don't have to wait for it to load?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

饭团 2024-08-22 20:34:43

您的每个视图堆栈都应该

creationPolicy = "all";

不确定是否可以在应用程序级别设置它或不控制所有子视图,但我知道它适用于视图堆栈。

each of your viewstacks should have

creationPolicy = "all";

not sure if this can be set at the application level or not to control all children, but I know it works on viewstacks.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文