© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago
Mek

How To Set Vertical Snap Points on Avalonia ScrollViewer

<ScrollViewer Classes="NewUserScroll">
    <Grid RowDefinitions="*,*,*,*">
        <Border Classes="NewUserBorder" Grid.Row="0"></Border>
        <Border Classes="NewUserBorder" Grid.Row="1"></Border>
        <Border Classes="NewUserBorder" Grid.Row="2"></Border>
        <Border Classes="NewUserBorder" Grid.Row="3"></Border>
    </Grid>
</ScrollViewer>
<ScrollViewer Classes="NewUserScroll">
    <Grid RowDefinitions="*,*,*,*">
        <Border Classes="NewUserBorder" Grid.Row="0"></Border>
        <Border Classes="NewUserBorder" Grid.Row="1"></Border>
        <Border Classes="NewUserBorder" Grid.Row="2"></Border>
        <Border Classes="NewUserBorder" Grid.Row="3"></Border>
    </Grid>
</ScrollViewer>
I'm curious to know if this is such a thing. Basically what I'm wanting to do is when the user clicks the buttons to scroll, or uses their mouse wheel, it will either auto scroll or "jump" with a scroll animation to the nth child within each of the borders. Is there a way I can name the border's and achieve this? Thanks.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ [Avalonia UI] - How to bind a process method to PointerPressed in ScrollViewer in xaml?
C#CC# / help
4y ago
❔ how to set a background color from resource in avalonia ?
C#CC# / help
4y ago
✅ How To Style ScrollBar Avalonia
C#CC# / help
2y ago
ScrollViewer in Avalonia DockPanel not scrolling to show all content when dynamically adding items.
C#CC# / help
4mo ago