C# WP7系统托盘字段/方法查询
我一直在WP7中使用,但我有点困惑,使用字段设置值和使用方法之间是否有区别 例如,我可以写:C# WP7系统托盘字段/方法查询,c#,windows-phone-7,system-tray,C#,Windows Phone 7,System Tray,我一直在WP7中使用,但我有点困惑,使用字段设置值和使用方法之间是否有区别 例如,我可以写: SystemTray.ProgressIndicator = myProgressBar; SystemTray.SetProgressIndicator(this, myProgressBar); 或者我可以写: SystemTray.ProgressIndicator = myProgressBar; SystemTray.SetProgressIndicator(this, myProgre
SystemTray.ProgressIndicator = myProgressBar;
SystemTray.SetProgressIndicator(this, myProgressBar);
或者我可以写:
SystemTray.ProgressIndicator = myProgressBar;
SystemTray.SetProgressIndicator(this, myProgressBar);
这两种方法都很有效,但两者都有点多余(虽然我是C#新手,所以可能我遗漏了一些东西)
这仅仅归结为个人偏好,还是有一个很好的理由使用这种或那种方式?如果这是显而易见的,请提前道歉;我只是个新来的好奇的人
谢谢你的时间 仔细阅读:SystemTray.SetProgressIndicator
方法:为指定的电话应用程序页面设置ProgressIndicator attached属性的值
SystemTray.ProgressIndicator
属性:获取或设置当前应用程序页面上系统托盘上的进度指示器。谢谢0x49D1!我错过了,因为我一直在处理当前页面。谢谢你指出不同之处。