Superangel
Superangel

Reputation: 1349

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!

Upvotes: 1

Views: 224

Answers (1)

0x49D1
0x49D1

Reputation: 8704

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.

Upvotes: 2

Related Questions