阅读背景:

以编程方式向WPF窗体添加控件

来源:互联网 

I am trying to add controls to a UserControl dynamically (programatically). I get a generic List of objects from my Business Layer (retrieved from the database), and for each object, I want to add a Label, and a TextBox to the WPF UserControl and set the Position and widths to make look nice, and hopefully take advantage of the WPF Validation capabilities. This is something that would be easy in Windows Forms programming but I'm new to WPF. How do I do this (see comments for questions) Say this is my object:I am trying to add controls to a UserControl dy




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

分享到: