Add a user control to a wpf window

后端 未结 4 1803
悲&欢浪女
悲&欢浪女 2020-12-02 19:38

I have a user control that I\'ve created, however when I go to add it to the XAML in the window, Intellisense doesn\'t pick it up, and I can\'t figure out how to add it to t

4条回答
  •  不知归路
    2020-12-02 20:07

    Make sure there is an namespace definition (xmlns) for the namespace your control belong to.

    xmlns:myControls="clr-namespace:YourCustomNamespace.Controls;assembly=YourAssemblyName"
    
    
    

提交回复
热议问题