CommunityToolkit / CommunityToolkit/Windows

[SettingsCard] Change ActionIcon to utilize IconSource and IconSourceElement

Offen
#858 4 Kommentare 0 Reaktionen 1 zugewiesene Person Beansprucht von @Avid29 Auf GitHub ansehen
components::controls::settingscontrols
Vorherrschende Sprache
C#
Sterne
1.1k
Forks
166
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Currently, the `ActionIcon` is an instance of an `IconElement`. This is problematic, because the `IconElement` is a `FrameworkElement`, meaning it cannot be a shared resource, and therefore changing the icon requires a unique value for every instance. This means it cannot be set using styles.

The solution is to replace the `IconElement` with an `IconSource`, however this is a breaking change. As a result, a deprecation plan needs to be made

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.