سلام بر تمامی برنامه نویسان سی شارپ 😉 در این مطلب کد وسط قرار دادن ToolTip با ToolTipService.Placement با wpf و c#.net را آماده کردم. انشاالله که این کد براتون مفید باشه.
تصویر خروجی این کد:
کد وسط قرار دادن ToolTip با ToolTipService.Placement با wpf و c#.net :
<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="200" Width="300">
<StackPanel>
<Button Height="40" Margin="5" ToolTipService.Placement="Center">
<Button.ToolTip>
<ToolTip>
ToolTip displayed for 5 seconds...
</ToolTip>
</Button.ToolTip>
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="WPF" Height="200" Width="300">
<StackPanel>
<Button Height="40" Margin="5" ToolTipService.Placement="Center">
<Button.ToolTip>
<ToolTip>
ToolTip displayed for 5 seconds...
</ToolTip>
</Button.ToolTip>