"smallImage" is a required property within the DAML definition of a TrayButton, and is normally expected to be an icon URI
.
SmallImage is used to display an icon for the TrayButton.
After a TrayButton has been constructed, SmallImage may optionally be changed to another icon URI
or ImageSource
, Such changes should be made within Initialize or at a later point, once the DAML properties have been loaded.
If you've changed SmallImage in your code, you can restore the DAML icon by setting it to null
.
A PropertyChangedEvent will be signaled when SmallImage is changed, but not when the initial DAML setting occurs.
Target Platforms: Windows 11, Windows 10