Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

ScrollView with Expander staying in view #1406

Answered by AndreiMisiukevich
tpitman asked this question in Q&A
Discussion options

You must be logged in to vote

@tpitman you always can scroll on your own :)

            var exp = new Expander();
            var scr = new ScrollView();

            exp.PropertyChanged += (s, e) =>
            {
                if (e.PropertyName == Expander.StateProperty.PropertyName && exp.State == ExpandState.Expanded)
                {
                    scr.ScrollToAsync(exp, ScrollToPosition.MakeVisible, true);
                }
            };

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@tpitman
Comment options

@AndreiMisiukevich
Comment options

@tpitman
Comment options

Answer selected by tpitman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants