با عرض سلام و خسته نباشید خدمت کاربران وب سایت پروگرم 98 😉 در این مطلب کد تنظیم مدت زمان نمایش و مکان ToolTip با wpf و سی شارپ #C را آماده کردم. انشاالله که این کد سی شارپ براتون مفید باشد.
خروجی این کد:
کد تنظیم مدت زمان نمایش و مکان ToolTip با 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="200" Width="300">
<StackPanel>
<Button Height="40" Margin="5" ToolTipService.Placement="Mouse"
ToolTipService.ShowDuration="1000">
<Button.ToolTip>
<ToolTip>
ToolTip displayed for 1 second...
</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="Mouse"
ToolTipService.ShowDuration="1000">
<Button.ToolTip>
<ToolTip>
ToolTip displayed for 1 second...
</ToolTip>
</Button.ToolTip>