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

Tool to wrap Xamarin.Forms components for Mobile Blazor Bindings usage #25

Closed
Eilon opened this issue Dec 30, 2019 · 2 comments · Fixed by #61
Closed

Tool to wrap Xamarin.Forms components for Mobile Blazor Bindings usage #25

Eilon opened this issue Dec 30, 2019 · 2 comments · Fixed by #61
Labels
area-mobileblazorbindings Experimental Mobile Bindings for Blazor
Milestone

Comments

@Eilon
Copy link
Member

Eilon commented Dec 30, 2019

No description provided.

@Eilon Eilon added the area-mobileblazorbindings Experimental Mobile Bindings for Blazor label Dec 30, 2019
@Eilon
Copy link
Member Author

Eilon commented Jan 17, 2020

Challenges:

  • Razor doesn't support Attached Properties, which are often used in components represented in XAML
  • Components that have inner content are tricky because you need to know what goes in it
  • Properties with complex types might need to be recursively added. Related, properties that rely on TypeConverters to parse values are not easily supported in Razor

@Eilon
Copy link
Member Author

Eilon commented Jan 23, 2020

Initial PR here: #61

@Eilon Eilon closed this as completed in #61 Jan 24, 2020
Eilon added a commit that referenced this issue Jan 24, 2020
Tool to generate Xamarin.Forms component wrappers
- Generates one wrapper at a time (component + handler)
- In the future can integrate this better into the workstream
- The main new functionality this will enable (beyond being automated) is to generate the right default values when a property needs its value (reset to default)

- Also updated attribute helpers to have an optional default value for null values

Fixes #25
@Eilon Eilon added this to the 0.2.0-preview milestone Jan 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-mobileblazorbindings Experimental Mobile Bindings for Blazor
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant