Windows Dev Center

SystemTray.GetBackgroundColor Method

Gets the value of the BackgroundColor attached property for a specified phone application page.

Namespace:  Microsoft.Phone.Shell
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

public static Color GetBackgroundColor(
	DependencyObject element


Type: System.Windows.DependencyObject
The page for which to get the BackgroundColor attached property.

Return Value

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

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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Windows Phone

© 2015 Microsoft