Skip to content

Commit 196dad9

Browse files
committed
Update fontsize of drawing surface on textsubmitted
1 parent 5410843 commit 196dad9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Microsoft.Toolkit.Uwp.UI.Controls.Media/InfiniteCanvas/InfiniteCanvas.TextBox.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,12 @@ private void CanvasComboBoxFontSizeTextBox_TextSubmitted(ComboBox sender, ComboB
107107
if (float.TryParse(args.Text, out var size))
108108
{
109109
SetFontSize(size);
110+
111+
if (SelectedTextDrawable != null)
112+
{
113+
_drawingSurfaceRenderer.ExecuteUpdateTextBoxFontSize(size);
114+
ReDrawCanvas();
115+
}
110116
}
111117
}
112118

0 commit comments

Comments
 (0)