ApplicationBarIconButton Constructor (Uri)

July 28, 2014

Creates a new instance of the ApplicationBarIconButton class with the specified icon.

Namespace:  Microsoft.Phone.Shell
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

public ApplicationBarIconButton(
	Uri iconUri
)

Parameters

iconUri
Type: System.Uri
The URI of the icon to use for the button.

The URI must point to a file in the application directory. When adding an image file to a project using Windows Phone SDK, you must set the Build Action property to “Content”. Using the default value “Resource” will not allow the image to be accessed or displayed.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft