maui-linux/Xamarin.Forms.Controls.Issues/Xamarin.Forms.Controls.Issu.../Issue22246_BZ.cs

50 строки
1.0 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Xamarin.Forms.CustomAttributes;
namespace Xamarin.Forms.Controls.TestCasesPages
{
[Preserve (AllMembers=true)]
[Issue (IssueTracker.Bugzilla, 22246, "Entry in Grid nested in ViewCell isn't expanding", PlatformAffected.WinPhone, NavigationBehavior.PushModalAsync)]
public class Issue22246Bz : ContentPage
{
public Issue22246Bz()
{
var table = new TableView {
Root = new TableRoot {
new TableSection("Testing Section") {
new ViewCell {
View = CreateBugView()
}
}
}
};
var layout = new StackLayout {
Children = {
CreateBugView(),
table
}
};
Content = layout;
}
View CreateBugView()
{
return new StackLayout {
Orientation = StackOrientation.Horizontal,
Spacing = 10,
Children = {
new Entry {Placeholder = "Entry", HorizontalOptions = LayoutOptions.FillAndExpand},
new Button {Text = "Button"}
}
};
}
}
}