سلام 😉 در این مطلب کد تنظیم سایز فونت TextBlock برای Grid با wpf و سی شارپ #C را آماده کردم. انشاالله که این کد براتون مفید باشه.
کد تنظیم سایز فونت TextBlock برای Grid با wpf و سی شارپ #C :
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="Microsoft.Samples.Graphics.RectangleExample"
WindowTitle="Example">
<Canvas>
<Grid Margin="5" TextBlock.FontSize="16">
<TextBlock Margin="10" VerticalAlignment="Center">Exclude</TextBlock>
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
x:Class="Microsoft.Samples.Graphics.RectangleExample"
WindowTitle="Example">
<Canvas>
<Grid Margin="5" TextBlock.FontSize="16">
<TextBlock Margin="10" VerticalAlignment="Center">Exclude</TextBlock>