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
Support ScrollIntoView for ListView #280
Comments
Seems like a totally reasonable thing to want to do from a XAML perspective. Setting simple example aside, is your real example a virtual list? Is it possible to declare a virtual data source through JS? |
I think so, but my example code may not be the way you want to approach it, and I'm not all that familiar with xaml. It could also follow the pattern used here: Calling methods on XAML objects. So something like: ListView.ScrollIntoView(listViewRef, lastListViewItemRef) We could probably also use StartBringIntoView instead, so something more like: ListViewItem.StartBringIntoView(lastListViewItemRef) The docs mention "Some types support custom commands to expose some functionality of the underlying platform" but as far as I can tell this is manually specified and only the
In our case it's not virtualized, its 10 - 20 list items mapped directly as |
Quick question, are you already using To be clear, adding / exposing the |
Hi @jonthysell, yes, we are using rn-xaml's |
Summary
I have been trying to find a way to programmatically scroll a
ListView
.The underlying
ListView
xaml component has a method to do this,ScrollIntoView
.Would it be possible to support using this method via
react-native-xaml
?Motivation
We are trying to use the ListView component for a list of chat messages, and need to be able to scroll the list when a new message is added.
Basic Example
Maybe something like:
Open Questions
No response
The text was updated successfully, but these errors were encountered: