-
Notifications
You must be signed in to change notification settings - Fork 125
Description
Describe the bug
The attached properties for the "relative ancestor" feature are currently targeting the wrong type:
These are defined in FrameworkElementExtensions but target a DependencyObject. This is not correct on its own, but in particular it also makes the APIs technically more error prone, as there is no type guarantee at build-time, and we're doing additional checks at runtime to ensure the input elements are in fact FrameworkElement-s, otherwise we do nothing:
Given that these APIs only make sense for FrameworkElement instances, and that they're defined within FrameworkElementExtensions too, we should update the signature and have them only target FrameworkElement objects. I should note: this would not be a source breaking change when the API was being used correctly, but it would be a binary breaking change.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status