[Bug] Some entries dissapear when I set IsVisible=true

Igor Kravchenko 281 Reputation points
2021-07-06T18:47:23.337+00:00

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? 112277-untitled.png
112260-untitled.png

<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>  

112266-screenshot-20210706-210920.jpg
112292-screenshot-20210706-210931.jpg
112267-screenshot-20210706-210936.jpg

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,293 questions
{count} votes