SystemTray.ForegroundColor Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets or sets the foreground color of the system tray on the current application page.

Namespace: Microsoft.Phone.Shell
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.

Syntax

Public Shared Property ForegroundColor As Color
public static Color ForegroundColor { get; set; }
<object>
  <object.ForegroundColor>
    <Color .../>
  </object.ForegroundColor>
</object>

Property Value

Type: System.Windows.Media..::.Color
The foreground color of the system tray on the current application page.

Exceptions

Exception Condition
InvalidOperationException

There is no active PhoneApplicationPage object.

Remarks

You cannot set the foreground to white. Use a color close to white instead.

The system tray is also referred to as the status bar.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Platforms

Windows Phone

See Also

Reference

SystemTray Class

Microsoft.Phone.Shell Namespace

Other Resources

Dependency Properties Overview

Attached Properties Overview