Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

General changedHandler for AttachedBehaviors #45

Closed
zewa666 opened this issue Apr 1, 2015 · 1 comment
Closed

General changedHandler for AttachedBehaviors #45

zewa666 opened this issue Apr 1, 2015 · 1 comment

Comments

@zewa666
Copy link
Member

zewa666 commented Apr 1, 2015

When you create an AttachedBehavior with multiple properties, this leads to having a lot of different changedHandlers. So it'd be nice if we could come up with a general handler, which gets called no matter what property changes.

Also we should think about the possibility to batch property changes and trigger the callback only once. As an example let's say you wrap Bootstraps Popover and in the handler you'd like to re-initialize the component. So instead doing it for each property change, having them stashed and only executing the function ones would be nice.

Regarding naming I'd propose one of the following:

onChanged
onPropertyChanged
propertiesChanged
anyChanged

the serialization should contain the propertyName as well as the newValue for the prop.

@zewa666
Copy link
Member Author

zewa666 commented Apr 21, 2015

Ok this one is kinda deprecated and alternatively dynamicProperties solve the same thing as well

@zewa666 zewa666 closed this as completed Apr 21, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant