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

Fix attached properties #766

Merged

Conversation

TimLariviere
Copy link
Member

Attached properties like Grid.Column, Grid.ColumnSpan had invalid default values because Fabulous was using the designated helper (Grid.SetColumn(child, value)) that has no "unset" equivalent.

This led to crashes in certain conditions.

So instead, Fabulous will now use directly the BindableProperty field (e.g. Grid.ColumnProperty) so it can clear the value if needed.

@Happypig375
Copy link

Should Fabulous.CodeGen be renamed to something like Fabulous.XamarinForms.CodeGen instead? It should be under Fabulous.XamarinForms.

@TimLariviere
Copy link
Member Author

Fabulous.CodeGen generates by default code compatible with XAML-based frameworks (WPF, Uno, Avalonia, XF, ...) so it isn't necessarily depend on Xamarin.Forms.

All the XF specifics are handled by Fabulous.XamarinForms.Generator.

@TimLariviere
Copy link
Member Author

TimLariviere commented Jun 26, 2020

... and thanks. That let me realize I wrote "Xamarin.Forms" in the shared code. :)

@TimLariviere TimLariviere merged commit 169b474 into fabulous-dev:master Jun 26, 2020
@TimLariviere TimLariviere deleted the fix-attached-properties branch June 26, 2020 07:58
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

Successfully merging this pull request may close these issues.

2 participants