Search code examples
c#windows-phone-7system-tray

WP7 SystemTray Fields/Methods Query


I've been working with the SystemTray in WP7, but I'm a little confused if there's a difference between using a field to set a value or using a method?

For example, I can write:

SystemTray.ProgressIndicator = myProgressBar;

Or I can write:

SystemTray.SetProgressIndicator(this, myProgressBar);

Both of these work, but it seems a little redundant to have both (though I'm new to C#, so perhaps I'm missing something).

Does this just boil down to personal preference, or is there a good reason to use one way or the other? Sorry in advance if this is obvious; I'm just new and curious.

Thanks for your time!


Solution

  • Read MSDN more carefully:
    SystemTray.SetProgressIndicator Method:
    Sets the value of the ProgressIndicator attached property for a specified phone application page.
    SystemTray.ProgressIndicator Property:
    Gets or sets the progress indicator on the system tray on the current application page.