Hi,
I am facing problem in placing 2 labels horizontal. The second label is moving out of display are..
public static Page GetMainPage()
{
var page = new ContentPage();
var lblCount = new Label() { Text = "10/10", Font = Font.SystemFontOfSize(25, FontAttributes.Bold), VerticalOptions = LayoutOptions.Center };
var lblHead = new Label() { Text = "Heading Heading Heading", Font = Font.SystemFontOfSize(16, FontAttributes.Bold) };
var lblDescription = new Label() { Text = "descriptionx descriptionx descriptionx descri ptionx descri ption0 descri ption1 descri ption2 descri ption3 descri ption4 descri ption5 description6", Font = Font.SystemFontOfSize(15, FontAttributes.None) };
var stkInner = new StackLayout() { Children = { lblHead, lblDescription }, Orientation = StackOrientation.Vertical, VerticalOptions = LayoutOptions.Center, Padding = new Thickness(15, 5, 20, 5), BackgroundColor = Color.Gray };
var stk = new StackLayout() { Children = { lblCount, stkInner }, Orientation = StackOrientation.Horizontal, VerticalOptions = LayoutOptions.Center, Padding = new Thickness(10, 5), BackgroundColor = Color.Olive };
page.Padding = 10;
page.Content = stk;
return page;
}![]()
what am i doing wrong here.. Can somebody help..
Thanks in advance.