[Issue (IssueTracker.Bugzilla, 34007, "Z order drawing of children views are different on Android, iOS, Win", PlatformAffected.Android | PlatformAffected.iOS)]
publicclassBugzilla34007:TestContentPage
{
protectedoverridevoidInit()
{
vargrid=newGrid();
varbutton0=newButton{
Text="Button 0",
HorizontalOptions=LayoutOptions.Fill,
VerticalOptions=LayoutOptions.Fill
};
varbutton1=newButton{
Text="Button 1",
HorizontalOptions=LayoutOptions.Fill,
VerticalOptions=LayoutOptions.Fill
};
varlastButtonTappedLabel=newLabel();
Actionreorder=()=>{
// Get the last item in the grid
varitem=grid.Children[1];
// Remove it
grid.Children.RemoveAt(1);
// And put it back as the 0th item
grid.Children.Insert(0,item);
};
button0.Clicked+=(sender,args)=>{
lastButtonTappedLabel.Text="Button 0 was tapped last";
};
button1.Clicked+=(sender,args)=>{
lastButtonTappedLabel.Text="Button 1 was tapped last";