-api-id | -api-type |
---|---|
M:Microsoft.UI.Windowing.AppWindow.SetIcon(System.String) |
winrt method |
Sets the icon for the window, using the specified icon path.
The path of the icon.
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.
m_AppWindow.SetIcon("iconPath/iconName.ico");