48 строки
1.0 KiB
C#
48 строки
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Collections.ObjectModel;
|
|
using System.ComponentModel;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Xamarin.Forms.Controls.Effects;
|
|
using Xamarin.Forms.CustomAttributes;
|
|
using Xamarin.Forms.Internals;
|
|
|
|
#if UITEST
|
|
using Xamarin.UITest;
|
|
using NUnit.Framework;
|
|
#endif
|
|
|
|
namespace Xamarin.Forms.Controls.Issues
|
|
{
|
|
[Preserve(AllMembers = true)]
|
|
[Issue(IssueTracker.Github, 2831, "[IOS] label not rendering in BOLD when using a STYLE",
|
|
PlatformAffected.iOS)]
|
|
public class Issue2831 : TestContentPage
|
|
{
|
|
protected override void Init()
|
|
{
|
|
Content = new StackLayout
|
|
{
|
|
Children = {
|
|
new Label
|
|
{
|
|
VerticalOptions = LayoutOptions.CenterAndExpand,
|
|
HorizontalOptions = LayoutOptions.CenterAndExpand,
|
|
HorizontalTextAlignment = TextAlignment.Center,
|
|
Text = "MUST BE BOLD",
|
|
TextColor = Color.Black,
|
|
FontSize = 50,
|
|
FontAttributes = FontAttributes.Bold,
|
|
Style = Device.Styles.ListItemDetailTextStyle,
|
|
}
|
|
}
|
|
};
|
|
}
|
|
}
|
|
|
|
#if UITEST
|
|
|
|
#endif
|
|
}
|