Class ProfileConfigurationIcon
Represents the icon of a ProfileConfiguration
public class ProfileConfigurationIcon : CorePropertyChanged, IStorageModel
- Inheritance
-
objectCorePropertyChangedProfileConfigurationIcon
- Implements
Properties
Fill
Gets or sets a boolean indicating whether or not this icon should be filled.
public bool Fill { get; set; }
Property Value
IconBytes
Gets or sets the icon bytes if IconType is BitmapImage
public byte[]? IconBytes { get; }
Property Value
- byte[]
IconName
Gets the name of the icon if IconType is MaterialIcon
public string? IconName { get; }
Property Value
IconType
Gets the type of icon this profile configuration uses
public ProfileConfigurationIconType IconType { get; }
Property Value
Methods
Load()
Loads the model from its associated entity
public void Load()
OnIconUpdated()
Invokes the IconUpdated event
protected virtual void OnIconUpdated()
Save()
Saves the model to its associated entity
public void Save()
SetIconByName(string)
Updates the IconName to the provided value and changes the IconType is MaterialIcon
public void SetIconByName(string iconName)
Parameters
iconNamestringThe name of the icon
SetIconByStream(Stream)
public void SetIconByStream(Stream stream)
Parameters
streamStreamThe stream to copy
Events
IconUpdated
Occurs when the icon was updated
public event EventHandler? IconUpdated