开发者

Silverlight: How to force a Control to create itself when not visible?

开发者 https://www.devze.com 2023-04-04 09:47 出处:网络
I know that Silverlight works by not actually creating a physical representation/GUI for a control until it becomes visible.

I know that Silverlight works by not actually creating a physical representation/GUI for a control until it becomes visible.

I have a wrapper that contains a ViewModel and an actual UI representation of the control (another piece). The ViewModel loads and the control itself is not null. The UI, which pulls partially from another library (Silverlight Toolkit), is null. I realize this is because the control is not yet visible and开发者_C百科 does not "exist" (even though the control logic does).

Is there any way to force a control to create ALL of it's children, as if it had become visible at least once? I realize this has a lot to do with how the VisualTree works in Silverlight (and WPF).

0

精彩评论

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