با عرض سلام و خسته نباشید خدمت کاربران وب سایت پروگرم 98 😉 در این مطلب کد تنظیم متن (Text) برای TextBlock با wpf و سی شارپ #C را آماده کردم. امیدوارم که این کد برای شما مفید باشد.
خروجی این کد:
کد تنظیم متن (Text) برای TextBlock با wpf و سی شارپ #C :
<Window x:Class="WpfApplication1.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="WPF" Height="160" Width="300">
<Grid>
<TextBlock Foreground="DarkGray"
VerticalAlignment="Center"
HorizontalAlignment="Center"
ToolTip="This is a custom tooltip"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="WPF" Height="160" Width="300">
<Grid>
<TextBlock Foreground="DarkGray"
VerticalAlignment="Center"
HorizontalAlignment="Center"
ToolTip="This is a custom tooltip"