WPF - Hosting content inside a UserControl

前端 未结 4 2078
灰色年华
灰色年华 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:39

    You have to set the ControlTemplate:

    
    
        
    
    
    

提交回复
热议问题