Hide control within a WPF User Control Library

前端 未结 3 847
清歌不尽
清歌不尽 2021-01-07 22:22

I\'ve a project made from the \"WPF User Control Library\" Template in Visual Studio. This project contains one main usercontrol plus additional Windows/Usercontrols.

<
3条回答
  •  死守一世寂寞
    2021-01-07 23:15

    Make those controls internal. If you have classic UserControls with XAML and codebehind you will need to add x:ClassModifier="internal" to the root element in the XAML:

    
           
    
    

提交回复
热议问题