阅读背景:

如何实现“传递”DataBinding?

来源:互联网 

A little background: I am loading a WPF UI from a database which is stored in a table of properties (Control type, label, margin, etc.) which I load into a class I call ControlPresenter. Basically I set ControlPresenter as the DataContext of a ContentPresenter and use a TemplateSelector to choose which type of control to load. The DataTemplate(s) load their properties off the DependencyProperties exposed by the ControlPresenter. I am loading a WPF UI from




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: