Hello,
how I get the default font size of a control that have text in it
Entry control provides a FontSize
property with which you could get the default font size and modify it.
Console.WriteLine(test_entry.FontSize);
test_entry.FontSize = 24;
For text controls in Maui, they all have the FontSize property.
You could refer to Set the font size for more detialed information.
Best Regards,
Alec Liu.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.