ForegroundColor Property

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.

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

ExceptionCondition
ArgumentNullException

The value to set is null.

This property does not return a default color. The value is null until it is set by the application.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft