سلام بر برنامه نویسان عزیز 😉 در این پست کد تنظیم FontWeight و فونت سایز و رنگ Foreground برای Label با wpf و سی شارپ #C را آماده کردم. امیدوارم که این کد برای شما مفید باشد.
خروجی این کد:
کد تنظیم FontWeight و فونت سایز و رنگ Foreground برای Label با wpf و سی شارپ #C :
<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
Title="About WPF" SizeToContent="WidthAndHeight"
FontSize="30" FontStyle="Italic"
Background="OrangeRed">
<StackPanel>
<Label FontWeight="Bold" FontSize="20" Foreground="White">
WPF Version
</Label>
<Label>2010</Label>
<Label>Installed Dll:</Label>
<ListBox>
Title="About WPF" SizeToContent="WidthAndHeight"
FontSize="30" FontStyle="Italic"
Background="OrangeRed">
<StackPanel>
<Label FontWeight="Bold" FontSize="20" Foreground="White">
WPF Version
</Label>
<Label>2010</Label>
<Label>Installed Dll:</Label>
<ListBox>