How to define a DataTemplate in code?

后端 未结 3 1610
终归单人心
终归单人心 2021-02-19 10:14

How can I create a DataTemplate in code (using C#) and then add a control to that DataTemplate?



        
3条回答
  •  我寻月下人不归
    2021-02-19 10:54

    Microsoft has a good article over at MSDN: "Data Templating Overview." I would start there.

    Update: Eh, scratch that. I read over your requirement for "in code." I'll just leave the link here for whoever might stumble upon this post.

提交回复
热议问题