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

30 строки
772 B
C#

using Xamarin.Forms.CustomAttributes;
namespace Xamarin.Forms.Controls
{
[Preserve (AllMembers = true)]
[Issue (IssueTracker.Bugzilla, 39395, "SwitchCell does not take all available place inside ListView",
PlatformAffected.WinRT)]
public class Bugzilla39395 : TestContentPage
{
protected override void Init ()
{
var instructions = new Label {
FontSize = 18,
Text =
"The switch cells below should be aligned with the right edge of the screen. If they are not, this test has failed."
};
Content = new StackLayout {
BackgroundColor = Color.Gray,
Children = {
instructions,
new ListView {
ItemTemplate = new DataTemplate (typeof(SwitchCell)),
ItemsSource = new[] { "Text", "Text" }
}
}
};
}
}
}