ApplicationBarIconButton Constructor (Uri)
Collapse the table of content
Expand the table of content

ApplicationBarIconButton Constructor (Uri)

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

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

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

'Declaration
Public Sub New ( _
	iconUri As Uri _
)

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:
© 2017 Microsoft