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

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


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


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:
Status:
RESOLVED NOT_REPRODUCIBLE

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"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="DayTickler.Views.Menu.AdminCodesPage">
    <StackLayout>
        <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>
        <StackLayout IsVisible="{Binding IsUnlocked}">
    <ListView ItemsSource="{Binding Items}">
        <ListView.ItemTemplate>
                <DataTemplate>
                    <TextCell Text="{Binding Name}" Detail="{Binding Description}" Command="{Binding Execute}" CommandParameter="{Binding ID}"></TextCell>
                </DataTemplate>
            </ListView.ItemTemplate>
    </ListView>
        </StackLayout>
    </StackLayout>
</ContentPage>

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