Skip to content

Latest commit

 

History

History
35 lines (21 loc) · 672 Bytes

appwindow_seticon_348408788.md

File metadata and controls

35 lines (21 loc) · 672 Bytes
-api-id -api-type
M:Microsoft.UI.Windowing.AppWindow.SetIcon(System.String)
winrt method

Microsoft.UI.Windowing.AppWindow.SetIcon(System.String)

-description

Sets the icon for the window, using the specified icon path.

-parameters

-param iconPath

The path of the icon.

-remarks

The SetIcon(String) method works only with .ico files. The string you pass to this method is the fully qualified path to the .ico file.

-see-also

Title bar customization

-examples

m_AppWindow.SetIcon("iconPath/iconName.ico");