-
-
Notifications
You must be signed in to change notification settings - Fork 122
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
XF Upgrade 4.0 #416
XF Upgrade 4.0 #416
Conversation
It is. Just like the now obsoleted TitleIcon. |
"defaultValue": "false", | ||
"modelType": "bool", | ||
"inputType": "bool", | ||
"updateCode": "updateIsFocusesd" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Little typo here :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True. Maybe not such a good idea to work on this in the night :D
@TimLariviere |
You're right, we shouldn't provide it. According to the documentation:
|
Well then I think everything should be in place and ready for merge. |
Travis doesn't seem very happy with the code (for once it's not Xamarin.Android)
|
@@ -95,18 +95,6 @@ | |||
"name": "Scale", | |||
"defaultValue": "1.0" | |||
}, | |||
{ | |||
"name": "Style", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it supposed to be removed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Along with StyleClass
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I took it from fuget:
public IList<string> class { get; set; }
public Style Style { get; set; }
public IList<string> StyleClass { get; set; }
In the Visualelement it looks like it does not exist anylonger
In the microsoftdoc: https://docs.microsoft.com/en-us/xamarin/xamarin-forms/release-notes/4.0/4.0.0-api#type-changed-xamarinformsvisualelement
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It has been moved to NavigableElement now, which VisualElement inherits
https://docs.microsoft.com/en-us/dotnet/api/xamarin.forms.navigableelement?view=xamarin-forms
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Comparing 3.4.0 vs 4.0.0, fuget shows that NavigableElement was created with these 3 properties
https://www.fuget.org/packages/Xamarin.Forms/4.0.0.425677/lib/netstandard2.0/diff/3.4.0.1008975/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we will need to change the Generator to prevent exposing those abstract intermediate classes, though.
Otherwise we will polute the View.* with non-usable controls
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will change it. didn't see that it was moved.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's right that we should change the generator a bit. Was mentioned in a issue, too. But that will be another PR... First of all the upgrade to 4.0
The |
|
The interesting part is that I get this error. Will push my latest changes in the next hour. |
@TimLariviere |
I also have the error with The easiest way to avoid that error is by temporarily changing the version number in the RELEASE_NOTES.md |
@SergejDK I can't find |
@TimLariviere For the searchboxvisibility problem we could write sth. In the docs for the time being. After a new release it should work just fine ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job!
Except for these few remarks, everything is good. :)
{ | ||
"name": "Unfocused", | ||
"defaultValue": "null", | ||
"inputType": "Xamarin.Forms.FocusEventArgs -> unit", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfocused is of type EventArgs -> unit
https://docs.microsoft.com/en-us/xamarin/xamarin-forms/release-notes/4.0/4.0.0-api#type-changed-xamarinformssearchhandler
{ | ||
"name": "Focused", | ||
"defaultValue": "null", | ||
"inputType": "Xamarin.Forms.FocusEventArgs -> unit", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same for Focused
Yes. That would be a good idea. |
@TimLariviere For the docs - could you write sth. there, please? - I'm out of town till sunday. Would be great so we can maybe merge it if everything works |
All's good. |
@TimLariviere, maybe you would better bump version to 0.40 to indicate that it has some significant changes? |
@SergejDK, works perfectly. Thank you very much for a great instant update. |
@xperiandri In my opinion, even with this major update to support Xamarin.Forms 4.0, Fabulous remains mostly the same. There's only a bunch of new controls supported, which most updates of Fabulous add. |
fix #412
fix #417
Fuget: https://www.fuget.org/packages/Xamarin.Forms/4.0.0.425677/lib/netstandard2.0/diff/3.6.0.344457/
There are some open parts on this PR:
Navigationpage
-- TitleIconImageSource is the only part:
@TimLariviere is it an attachedproperty?
Searchhandler: selecteditem
shellnavigationstate: location