WPF按钮工具提示InitialShowDelay不工作
这是我的按钮:WPF按钮工具提示InitialShowDelay不工作,wpf,button,tooltip,Wpf,Button,Tooltip,这是我的按钮: <Button Style="{DynamicResource MetroCircleButtonStyle}" HorizontalAlignment="Right" Grid.Column="3" Width="40" Height="40" Command="{Binding NewConnectionCommand}"> <Rectangle Width="20" Height="20">
<Button Style="{DynamicResource MetroCircleButtonStyle}" HorizontalAlignment="Right" Grid.Column="3" Width="40" Height="40" Command="{Binding NewConnectionCommand}">
<Rectangle Width="20" Height="20">
<Rectangle.Fill>
<VisualBrush Stretch="Fill" Visual="{StaticResource appbar_add}" />
</Rectangle.Fill>
</Rectangle>
<Button.ToolTip>
<ToolTip ToolTipService.InitialShowDelay="5000">
<StackPanel>
<TextBlock FontWeight="Bold">Add connection</TextBlock>
<TextBlock>Open the dialog to create the new connection.</TextBlock>
</StackPanel>
</ToolTip>
</Button.ToolTip>
</Button>
添加连接
打开对话框以创建新连接。
我正试图将initialShowDelay设置为5000毫秒,就像你们看到的那样,但是工具提示总是在默认时间显示
我做错了什么?您必须在
按钮上设置工具提示。InitialShowDelay=“5000”
而不是在工具提示上设置。它位于按钮上,您希望工具提示延迟显示
<Button ToolTipService.InitialShowDelay="5000>
您必须在按钮上设置工具提示。InitialShowDelay=“5000”
而不是在工具提示上设置。它位于按钮上,您希望工具提示延迟显示
<Button ToolTipService.InitialShowDelay="5000>
将ToolTipService.InitialShowDelay=“5000”
放在按钮上而不是工具提示上。错误3(无法设置属性元素的属性)。什么?有件事你做错了。。请看,您可以轻松设置任何元素。另外,我有点迟钝,我尝试在…上添加tooltipservice。在按钮上放置tooltipservice.InitialShowDelay=“5000”
,不在ToolTip上。错误3(无法设置属性元素的属性)。什么?有件事你做错了。。请看,您可以轻松设置任何元素。我也是弱智,我试着在…上添加工具提示服务。。。