开发者

How can I force WPF to make data bindings without showing the window?

I want to unit test a WPF application and one scenario is to check that data bindings are correct. The simple way to do that would be to create the form, force it to bind to data and then com开发者_如何学Pythonpare the values from the controls with the expected ones. Is there any way to do that?


You can set the Window's Visibility property to Hidden.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜