我的工具提示上有一個與下拉專案相關的非常奇怪的行為。
我發布了一個視頻,因為它更容易看到 https://imgur.com/a/RxFvAPP
我的 XAML 看起來像這樣
<RibbonGroup x:Name="PageRibbonGroup" Header="{x:Static p:Resources.Page_Ribbon_Group}" LargeImageSource="{svgc:SvgImage Source='pack://application:,,,/Resources/HomeTab/Page/page_group.svg'}">
<RibbonComboBox>
<RibbonGallery x:Name="PagesListComboboxGallery" SelectedItem="{Binding XPath=.}" MaxColumnCount="1">
<RibbonGalleryCategory x:Name="PagesListComboboxGalleryCategory" ItemsSource="{Binding}"/>
<RibbonGallery.ToolTip>
<ToolTip Placement="Bottom" Content="ASDF" ToolTipService.ShowDuration="5000"/>
</RibbonGallery.ToolTip>
</RibbonGallery>
</RibbonComboBox>
</RibbonGroup>
這發生在我在下拉元素上的每個工具提示上看到的內容。
我找不到發生這種情況的原因。
我還創建了一個回購 https://github.com/SebiCiuca/RibbonToolTipFlicker
對于組合框和下拉按鈕,您可以重現此行為,但對于 Button3,工具提示可以正常作業。
uj5u.com熱心網友回復:
https://github.com/dotnet/wpf/pull/6063/files
看起來像一個 WPF 錯誤,應該在未來的 .NET6 版本中修復。
此行為不會在 .NET5 中重現。
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/440640.html
