Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CheckChanged event does not fire when Checkbox is in a VerticalStackLayout #322

Open
smallcandles opened this issue Nov 5, 2022 · 0 comments
Labels
bug Something isn't working target-MAUI

Comments

@smallcandles
Copy link

smallcandles commented Nov 5, 2022

MAUI added both HorizontalStackLayout and VerticalStackLayout controls. When I place a CheckBox in a VerticalStackLayout, the CheckChanged event does not fire when the checkbox is checked or unchecked. If I change the stack back to a StackLayout (with orientation of Vertical), it fires as expected.

My XAML is something similar to:

<VerticalStackLayout Grid.Column="1" Grid.Row="0" HorizontalOptions="Fill" Padding="5,0,0,0"> <input:CheckBox Text="Owned" Type="Material" BoxSizeRequest="30" IsVisible="{Binding IsNotGuest}" IsChecked="{Binding IsOwned}" IsEnabled="{Binding GatherComplete}" CheckChanged="Tapped_Owned"/> <input:CheckBox Text="Wanted" Type="Material" BoxSizeRequest="30" IsVisible="{Binding IsNotGuest}" IsChecked="{Binding IsWanted}" IsEnabled="{Binding GatherComplete}" CheckChanged="Tapped_Wanted"/> <input:CheckBox Text="For Trade" Type="Material" BoxSizeRequest="30" IsVisible="{Binding IsNotGuest}" IsChecked="{Binding IsForTrade}" IsEnabled="{Binding GatherComplete}" CheckChanged="Tapped_ForTrade"/> </VerticalStackLayout>

@enisn enisn added bug Something isn't working target-MAUI labels Nov 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working target-MAUI
Projects
None yet
Development

No branches or pull requests

2 participants