WPF - Hosting content inside a UserControl

前端 未结 4 2079
灰色年华
灰色年华 2020-12-08 03:35

I\'m trying to create a user control that has a Grid with two rows. the first row for a title and the second one for a content that will be defined outside the

4条回答
  •  被撕碎了的回忆
    2020-12-08 04:31

    Use template with

    < ContentControl />

    Instead of using Content Presenter

    So place this:

    
            
        
    

    to your userControl

提交回复
热议问题