WPF 按钮工具提示 InitialShowDelay 不起作用

C1r*_*dec 0 wpf button tooltip

有我的按钮:

<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>
Run Code Online (Sandbox Code Playgroud)

我正在尝试将 initialShowDelay 设置为 5000 毫秒,就像你们看到的那样,但工具提示总是在默认时间显示......

我做错了什么?

Nit*_*tin 5

你将不得不设置ToolTipService.InitialShowDelay="5000"Button不 上Tooltip。您希望工具提示延迟显示在按钮上

<Button ToolTipService.InitialShowDelay="5000>
Run Code Online (Sandbox Code Playgroud)