Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,923 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have added some entries to StackLayout with ScrollView. When I toggle switch on some views (entries and buttons) are not visible. Those views are not fit on the screen and will be invisible. Please help me to find a workaround.
Reported here
P. S. The tags on this forum are useless. I can't find any associated with XF tag. Any property from XF views! Are you seriously?
<ScrollView>
<StackLayout Spacing="3" Padding="15">
<Entry Placeholder="Default Text" FontSize="Medium" />
<Entry Placeholder="Default Text" FontSize="Medium" />
<Entry Placeholder="Default Text" FontSize="Medium" />
<Entry Placeholder="Default Text" FontSize="Medium" />
<Entry Placeholder="Default Text" FontSize="Medium" />
<Entry Placeholder="Default Text" FontSize="Medium" />
<Entry Placeholder="Default Text" FontSize="Medium" />
<Entry Placeholder="Default Text" FontSize="Medium" />
<Entry Placeholder="Default Text" FontSize="Medium" />
<Entry Placeholder="Default Text" FontSize="Medium" />
<Switch IsToggled="{Binding IsAdditionalContentVisible}"></Switch>
<Entry Placeholder="Additional Entry" FontSize="Medium" IsVisible="{Binding IsAdditionalContentVisible}"/>
<Entry Placeholder="Additional Entry" FontSize="Medium" IsVisible="{Binding IsAdditionalContentVisible}"/>
<Entry Placeholder="Additional Entry" FontSize="Medium" IsVisible="{Binding IsAdditionalContentVisible}"/>
<Entry Placeholder="Additional Entry" FontSize="Medium" IsVisible="{Binding IsAdditionalContentVisible}"/>
<Entry Placeholder="Text" FontSize="Medium" />
<!--Some of these entries will be invisible-->
<Entry Placeholder="Text" FontSize="Medium" />
<Entry Placeholder="Text" FontSize="Medium" />
<Entry Placeholder="Text" FontSize="Medium" />
<StackLayout Orientation="Horizontal">
<Button Text="Cancel" Command="{Binding CancelCommand}" HorizontalOptions="FillAndExpand"></Button>
<Button Text="Save" Command="{Binding SaveCommand}" HorizontalOptions="FillAndExpand"></Button>
</StackLayout>
</StackLayout>
</ScrollView>