English 中文(简体)
MVLT 用户控制——在什么地方,我宣布从网页上获取数据?
原标题:MVVM User control - where do i declare it to get data from page?

我拥有WPF用户控制,即MVVER。 用户控制(包含清单调查)需要网页上的数据(包括该网页)。 我必须把财产设于。 在后面浏览代码,以获取这一数据投入。 这将符合MVVER(But MVVM patterns不支持根据一所知在法典中添加行文。 如果不是的话,那也是什么方法?

问题回答

You want to do this via data binding. The controls are bound to properties in your viewmodel which receives the data, applies the needed logic and gives it back to the view for displaying it. Have a look here to get an idea on how all that works.





相关问题
Benefits of declaring a function as "inline"?

Every time I read about the "inline" declaration in C it is mentioned that it is only a hint to the compiler (i.e. it does not have to obey it). Is there any benefit to adding it then, or should I ...

热门标签