Share via


AppWindow.SetTitleBarIcon Method

Definition

Overloads

Name Description
SetTitleBarIcon(IconId)

Sets the icon for the window title bar using the specified icon ID.

SetTitleBarIcon(String)

Sets the icon for the window title bar using the specified icon path.

SetTitleBarIcon(IconId)

Sets the icon for the window title bar using the specified icon ID.

public:
 virtual void SetTitleBarIcon(IconId iconId) = SetTitleBarIcon;
/// [Windows.Foundation.Metadata.Overload("SetTitleBarIconWithIconId")]
void SetTitleBarIcon(IconId const& iconId);
[Windows.Foundation.Metadata.Overload("SetTitleBarIconWithIconId")]
public void SetTitleBarIcon(IconId iconId);
function setTitleBarIcon(iconId)
Public Sub SetTitleBarIcon (iconId As IconId)

Parameters

iconId
IconId

The ID of the icon.

Attributes

Remarks

For more information about setting the icon, see SetIcon. This method works the same way, but lets you set the title bar icon independently of the taskbar icon.

See also

Applies to

SetTitleBarIcon(String)

Sets the icon for the window title bar using the specified icon path.

public:
 virtual void SetTitleBarIcon(Platform::String ^ iconPath) = SetTitleBarIcon;
/// [Windows.Foundation.Metadata.DefaultOverload]
/// [Windows.Foundation.Metadata.Overload("SetTitleBarIcon")]
void SetTitleBarIcon(winrt::hstring const& iconPath);
[Windows.Foundation.Metadata.DefaultOverload]
[Windows.Foundation.Metadata.Overload("SetTitleBarIcon")]
public void SetTitleBarIcon(string iconPath);
function setTitleBarIcon(iconPath)
Public Sub SetTitleBarIcon (iconPath As String)

Parameters

iconPath
String

Platform::String

winrt::hstring

The path of the icon.

Attributes

Remarks

For more information about setting the icon, see SetIcon. This method works the same way, but lets you set the title bar icon independently of the taskbar icon.

See also

Applies to