开发者

How to add WPF datagrid Programatically and setting other properties

My Quetion is, How to add WPF datagrid Programatically and set ItemsSource Propery in c# code as XAML equivalant {Bindin开发者_运维百科g}.


Depending on the parent container, you can operate in different way. Just imagine to do it in XAML and then write the equivalent code in C#. XAML is always transable in C#. Setting ItemSource is just assign the property ItemSource , and {Binding} means passing DataContext.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜