SystemTray.GetForegroundColor Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets the value of the ForegroundColor attached property for a specified phone application page.
Namespace: Microsoft.Phone.Shell
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
Syntax
Public Shared Function GetForegroundColor ( _
element As DependencyObject _
) As Color
public static Color GetForegroundColor(
DependencyObject element
)
Parameters
- element
Type: System.Windows..::.DependencyObject
The page for which to get the ForegroundColor attached property.
Return Value
Type: System.Windows.Media..::.Color
The foreground color of the system tray on the current application page.
Remarks
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
Microsoft.Phone.Shell Namespace