Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

horizontal scrollview

$
0
0

Hi xamarin developers,

my horizontal scrollview doesnt scroll horizontally, here is code.

` StackLayout stack = new StackLayout {
Orientation = StackOrientation.Horizontal
};

            for (int i = 0; i < 40; i++)
                stack.Children.Add (new Label{ Text = "myrow " + i });

            ScrollView scr = new ScrollView{
                Orientation = ScrollOrientation.Horizontal,
                HorizontalOptions=LayoutOptions.FillAndExpand,
                Padding = new Thickness (0, Device.OnPlatform (20, 0, 0), 0, 0),
                Content = stack
            };

`
Any ideas?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>