我想将我的用户控件内的控件设置为私有,这样只有我选择公开的方法/属性才可访问。 我发现这个类似的问题:How do I make my controls inside a UserControl private? 不过,我想知道如何/如果这可以在Windows窗体进行 看来喜欢的事,应该是很简单的(不WPF)。 ...我错过了什么? 谢谢。 编辑:为了回应一些评论/回答,我只想说清楚,我正在使用V
我在使用DispatcherTimer发送信号以获取来自某些温度传感器的新数据时,在主页面中有UserControl更新的问题。 Sensors.xaml.cs public sealed partial class Sensors : UserControl
{
public Sensors()
{
this.InitializeComponent();
我有一个用户控件,我需要从另一个窗口访问该用户控件上的标签..例如...只需更改标签的文本。例如.. Usercontrol.label1.content = "Got it"
我可以在主窗口做访问任何控制以下内容: Public main As MainWindow = DirectCast(Application.Current.MainWindow, MainWindow)
如何做到