Files
PowerToys/src/modules/cmdpal/extensionsdk/Microsoft.CommandPalette.Extensions.Toolkit/IconData.cs
Mike Griese e842621036 CmdPal: Make it easier to add APIs in the future (#41056)
We learned a lot about adding interfaces in WinRT this week. I figured
I'd send a PR to write it all down.
2025-08-21 16:53:00 -05:00

31 lines
698 B
C#

// Copyright (c) Microsoft Corporation
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System.Diagnostics.CodeAnalysis;
using Windows.Storage.Streams;
namespace Microsoft.CommandPalette.Extensions.Toolkit;
public partial class IconData : IIconData
{
public IRandomAccessStreamReference? Data { get; set; }
public string? Icon { get; set; } = string.Empty;
public IconData(string? icon)
{
Icon = icon;
}
public IconData(IRandomAccessStreamReference data)
{
Data = data;
}
internal IconData()
: this(string.Empty)
{
}
}