-
-
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
ScrollView properties/events missing #311
Comments
@SergejDK Good find. We're indeed missing a bunch of properties and events on ScrollView. In addition to I'm not sure how to correctly support the method E.g. let scrollViewRef = ViewRef<ScrollView>()
View.ScrollView(ref=scrollViewRef)
// Some time later
async {
do! scrollViewRef.ScrollToAsync(10.0, 20.0, true)
}
OR
View.ScrollView(scrollTo=(10.0, 20.0, true)) The 2nd one looks cleaner. But we won't be able to await it... |
Is one way of the examples for |
Correction:
You mean for unit tests? |
What is the difference between the AcceleratorProperty of the MenuItem and the ScrollX/Y? They are both readonly. Yes I meant for unit tests. Well then I think the 2nd solution is okay. Or is there some other profit with using the 1st solution ? |
And when writing views, we only create new ViewElements to describe how we want the view to be. So from an out-of-XF viewpoint, ScrollX and ScrollY are readonly, Accelerator is not. |
With the first solution, the only 2 advantages I see are :
But the drawback is it not really the way Fabulous works. |
Great explanation! 👍 |
I do think that we can go with the 2nd one. Normally there shouldn't be a problem when we move to a new XF version or are the some special part to be aware of. The documentation part is okay to write, I mean it needs to be written either way. In some cases there are already some differences to XF so I think it is better to stay with the Fabulous way. |
Ideally yes, but if we can just point people to docs.microsoft.com and not write the docs ourselves, it will save us a lot of work. :)
Ok, I'm good with it. |
I think we currently can't get and set the current scrollposition of the scrollview.
If I am right these parts should be inclueded:
Properties
I don't know if other events should be included like e.g. SetScrolledPosition. When we have the scrollX and scrollY property the events should not be needed.
The text was updated successfully, but these errors were encountered: