label
컨트롤을 사용하여 한 페이지에 거의 300 줄을 표시하려고하는데 첫 줄만 표시하고 다음 코드를 사용합니다. 모든 줄을 표시하는 방법은 label
적절한 컨트롤입니까?Xamarin.forms의 Label이 모든 텍스트를 표시하지 않는 이유는 무엇입니까?
Label testt = new Label { Text = MainPage.part1, VerticalOptions = LayoutOptions.CenterAndExpand, HorizontalOptions = LayoutOptions.CenterAndExpand, FontAttributes = FontAttributes.Bold, FontSize = 24, TextColor = Color.White };
StackLayout stacklayout = new StackLayout
{
Children = {
TitleOfBook,
testt
}
};
ScrollView scroll = new ScrollView
{
Content = stacklayout
,VerticalOptions=LayoutOptions.FillAndExpand,
HorizontalOptions=LayoutOptions.FillAndExpand
};
Content = scroll;
아니요, 레이블은 300 줄의 텍스트를 표시하기위한 적절한 컨트롤이 아닙니다. 편집자 또는 WebView조차 더 나은 선택 일 것입니다. – Jason
@jason 편집기를 사용할 때 텍스트 색상이 회색으로 표시됩니다. :( –
WebView가 나를 위해 훨씬 더 나은 선택이었습니다 ..thanks –