Skip to content

Commit

Permalink
added editor into MainPage
Browse files Browse the repository at this point in the history
  • Loading branch information
pictos committed Mar 16, 2021
1 parent 4599c75 commit 5885db9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Controls/samples/Controls.Sample/Pages/MainPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ void SetupMauiLayout()
verticalStack.Add(new Label { Text = loremIpsum, LineBreakMode = LineBreakMode.TailTruncation });
verticalStack.Add(new Label { Text = loremIpsum, MaxLines = 2, LineBreakMode = LineBreakMode.TailTruncation });

var editor = new Editor
{
FontSize = 10,
FontFamily = "dokdo_regular"
};

var paddingButton = new Button
{
Expand Down Expand Up @@ -119,7 +124,7 @@ void SetupMauiLayout()
verticalStack.Add(new TimePicker());

verticalStack.Add(new Image() { Source = "dotnet_bot.png" });

verticalStack.Add(editor);
Content = verticalStack;
}

Expand Down

0 comments on commit 5885db9

Please sign in to comment.