开发者

Silverlight: How to force a Control to create itself when not 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜