Edit

Share via


IconData Class

Definition

Namespace: Microsoft.CommandPalette.Extensions.Toolkit

Implements IIconData

The IconData class is used to represent icon data for a command in the Command Palette. It provides properties to access the icon data and its associated URI.

Constructors

Constructor Description
IconData(IRandomAccessStreamReference) Initializes the Data property with the provided IRandomAccessStreamReference.
IconData(String) Initializes the Icon property with the provided String.

Properties

Property Type Description
Data Windows.Storage.Streams.IRandomAccessStreamReference Gets or sets the icon data as a stream reference. This property is used to load the icon data from a stream.
Icon String Gets or sets the icon URI. This property is used to load the icon from a URI.