private void OnCounterClicked(object sender, EventArgs e)
{
Page.IsVisible=!Page.IsVisible; (Page has to be false - hide this content first)
Page2.IsVisible = !Page2.IsVisible; (Page2 has to be true - show this content)
}
Net Maui How to show or hide ( collapsed ) content in stacklayout or grid ?

Sami
966
Reputation points
<StackLayout ZIndex="1" x:Name="Page" IsVisible="true" ></StackLayout>
<StackLayout x:Name="Page2" IsVisible="false" ></StackLayout>
1 answer
Sort by: Most helpful
-
Sami 966 Reputation points
2023-01-26T08:43:50.54+00:00