Bug 33405 - Invalid layout process with stacklayouts, listviews and isvisible
Summary: Invalid layout process with stacklayouts, listviews and isvisible
Alias: None
Product: Forms
Classification: Xamarin
Component: Windows ()
Version: 1.5.0
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2015-08-26 17:07 UTC by Erik Renaud
Modified: 2015-08-31 10:15 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Reproduction project (306.26 KB, application/x-zip-compressed)
2015-08-31 10:15 UTC, Paul DiPietro [MSFT]

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Erik Renaud 2015-08-26 17:07:06 UTC
Given this xaml
<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
        <StackLayout IsVisible="{Binding IsLocked}">
            <Label Text="Admin Unlock Code"/>
            <Entry Text="{Binding AdminUnlockCode}" Keyboard="Numeric" Placeholder="Enter admin unlock code..."></Entry>
            <Button Command="{Binding Unlock}" Text="Unlock"/>
        <StackLayout IsVisible="{Binding IsUnlocked}">
    <ListView ItemsSource="{Binding Items}">
                    <TextCell Text="{Binding Name}" Detail="{Binding Description}" Command="{Binding Execute}" CommandParameter="{Binding ID}"></TextCell>

if IsLocked is true and IsUnlocked is false and the listview contains items, then I cannot select the entry and click on the unlock button
Comment 1 Paul DiPietro [MSFT] 2015-08-31 10:14:59 UTC
I'm unable to reproduce this using on any of the platforms using the XAML you provided (with properties being used in App.cs to bind to).
Comment 2 Paul DiPietro [MSFT] 2015-08-31 10:15:25 UTC
Created attachment 12691 [details]
Reproduction project