سلام بر برنامه نویسان عزیز 😉 در این مطلب کد تنظیم متن ToolTip برای TextBlock با wpf و سی شارپ #C را آماده کردم. انشاالله که این کد براتون مفید باشه.
خروجی این کد:
کد تنظیم متن ToolTip برای 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"