Add FontSize property to Text element and render with DrawStringHeight

This commit is contained in:
Stone_Red
2026-06-14 19:01:52 +02:00
parent 4d70242ece
commit 43732684b3
3 changed files with 17 additions and 6 deletions
+6
View File
@@ -15,4 +15,10 @@ public class Text() : UIElement("Text")
get;
set => SetProperty(nameof(Color), ref field, value);
} = Color.White;
public int FontSize
{
get;
set => SetProperty(nameof(FontSize), ref field, value);
} = 12;
}