Arlodotexe / strix-music

Combine any music sources into a single library. It's your music. Play it your way.
http://www.strixmusic.com
138 stars 4 forks source link

SDK collection and item classes dependency properties needs to provide virtual property changed callbacks. #155

Open amaid opened 2 years ago

amaid commented 2 years ago

Describe the problem

Currently there is no way to handle the DP property changed events on the Collection/Item dependency property on the following essential SDK classes (there maybe more classes with similar situations):

Since DPs cannot be virtual they cannot be overridden like normal properties , to achieve this currently we are (kind of) overriding the existing DP properties using the new keyboard which hides the parent DP and is not an ideal way to do it.

image

Describe the proposed change

To fix this each base class DP should provide virtual callback of the Dependency property, in this way this callback can be overriden by shells without hiding the base class DPs using the new keyword

image

Alternatives

No response

Additional info

No response

Help us help you

No response