Table of Contents

Class UIIcon

Namespace
Playnite
Assembly
Playnite.SDK.dll
public class UIIcon : ObservableObject, INotifyPropertyChanged, INotifyPropertyChanging
Inheritance
UIIcon
Implements
Inherited Members

Constructors

UIIcon()

public UIIcon()

UIIcon(FrameworkElement)

public UIIcon(FrameworkElement icon)

Parameters

icon FrameworkElement

Properties

Icon

public FrameworkElement? Icon { get; set; }

Property Value

FrameworkElement

Methods

FromAssemblyResourceFile(string, string)

public static UIIcon FromAssemblyResourceFile(string assemblyName, string path)

Parameters

assemblyName string
path string

Returns

UIIcon

FromBitmapFile(string)

public static UIIcon FromBitmapFile(string filePath)

Parameters

filePath string

Returns

UIIcon

FromBitmapSource(BitmapSource)

public static UIIcon FromBitmapSource(BitmapSource source)

Parameters

source BitmapSource

Returns

UIIcon

FromFontIcon(string, FontFamily, Brush?)

public static UIIcon FromFontIcon(string symbolCode, FontFamily fontFamily, Brush? color = null)

Parameters

symbolCode string
fontFamily FontFamily
color Brush

Returns

UIIcon

FromIconConfig(IconConfig)

public static UIIcon FromIconConfig(IconConfig config)

Parameters

config IconConfig

Returns

UIIcon

FromResourceTemplate(string, object?)

public static UIIcon FromResourceTemplate(string templateKey, object? dataContext = null)

Parameters

templateKey string
dataContext object

Returns

UIIcon

GetIcon()

public virtual FrameworkElement? GetIcon()

Returns

FrameworkElement