ApplicationBar.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 Application Bar.

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

Syntax

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

Property Value

Type: System.Windows.Media..::.Color
The foreground color of the Application Bar.

Implements

IApplicationBar..::.ForegroundColor

Exceptions

Exception Condition
ArgumentNullException

The value to set is nullNothingnullptra null reference (Nothing in Visual Basic).

Remarks

This property does not return a default color. The value is nullNothingnullptra null reference (Nothing in Visual Basic) until it is set by the application.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

ApplicationBar Class

Microsoft.Phone.Shell Namespace

Other Resources

How to create an app bar using XAML for Windows Phone

App bar for Windows Phone