ApplicationBar.BackgroundColor Property

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

Gets or sets the background 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 BackgroundColor As Color
public Color BackgroundColor { get; set; }
<object>
  <object.BackgroundColor>
    <Color .../>
  </object.BackgroundColor>
</object>

Property Value

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

Implements

IApplicationBar..::.BackgroundColor

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