AppBarCommand.icon property

2 out of 7 rated this helpful - Rate this topic

Gets or sets the icon of the AppBarCommand.

Syntax


var icon = appBarCommand.icon;
appBarCommand.icon = icon;

Property value

Type: string

The icon. This is either one of the values of AppBarIcon, or a custom PNG file.

Remarks

Custom icons should be 40x40 PNG files, with a transparent background. Windows draws the ring around the icon for you, and provide a fill for the ring as needed.

Requirements

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Namespace

WinJS.UI

Library

Ui.js

See also

AppBarCommand
WinJS.UI.AppBarIcon
Quickstart: Add an app bar with commands

 

 

Build date: 12/5/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.