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

Blazor: Attached properties (behaviors) #20715

Closed
robertjak opened this issue Apr 10, 2020 · 2 comments
Closed

Blazor: Attached properties (behaviors) #20715

robertjak opened this issue Apr 10, 2020 · 2 comments
Labels
area-blazor Includes: Blazor, Razor Components enhancement This issue represents an ask for new feature or an enhancement to an existing one

Comments

@robertjak
Copy link

robertjak commented Apr 10, 2020

A feature request: Attached properties like in WPF framework - for cross cutting functionality among components (logic reuse). Or something like Knockout bindings or AngularJS attribute directives.

For instance, logic reuse among components in React can be a nightmare, there are some standard workarounds using higher order components, render props etc. but none of them is elegant and maintainable, in the end the components are nested endlessly. There are also hooks but these are certainly neither maintainable nor easy to understand. Attached properties would solve this problem perfectly.

@javiercn javiercn added the area-blazor Includes: Blazor, Razor Components label Apr 10, 2020
@mkArtakMSFT
Copy link
Member

Thanks for contacting us. This is not a good fit for Blazor app-model at this time.

@mkArtakMSFT mkArtakMSFT added the enhancement This issue represents an ask for new feature or an enhancement to an existing one label Apr 13, 2020
@dotnet dotnet locked as resolved and limited conversation to collaborators May 13, 2020
@danroth27
Copy link
Member

Seems related to #5607

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-blazor Includes: Blazor, Razor Components enhancement This issue represents an ask for new feature or an enhancement to an existing one
Projects
None yet
Development

No branches or pull requests

4 participants