如何在C#中重命名UserControl而不会出现错误? [关闭]

问题描述 投票:-3回答:1

[enter image description here当在C#中重命名的userControl时,错误出现在设计上吗?重命名的最佳方法是什么?

c# wpf user-controls
1个回答
0
投票

重命名代码隐藏类。 XAML也将随之效仿。

对于MyUserControl.xaml,代码隐藏文件是MyUserControl.xaml.cs

© www.soinside.com 2019 - 2024. All rights reserved.