我是Avalon Dock的新手。我在LayoutAnchorable中创建了一个LayoutAnchorablePane,但发现在标题textblock旁边创建了一个未命名的映像。它是不可见的和可聚焦的,但可以在可访问性Insight中找到。
我猜它是从IconSource of LayoutAnchorable转换而来的。但是,当我更改IconSource时,图像并没有改变。
有人能告诉我如何从UI自动化树中删除或隐藏这个图像吗?或者至少如何为其设置边框(当前可访问性洞察一直说图像不应该具有空BoundingRectangle属性)?
UI自动化树:UI自动化树
How found: Selected from tree...
Name: ""
ControlType: UIA_ImageControlTypeId (0xC356)
LocalizedControlType: "image"
IsEnabled: true
IsOffscreen: false
IsKeyboardFocusable: false
HasKeyboardFocus: false
AcceleratorKey: ""
AccessKey: ""
ProcessId: 17588
RuntimeId: [7.44B4.1486734]
AutomationId: "icon"
FrameworkId: "WPF"
ClassName: "Image"
IsControlElement: true
IsContentElement: true相关守则:
<adl:LayoutAnchorablePane DockHeight="300" DockWidth="500">
<adl:LayoutAnchorable Title="Experiments" ContentId="ExperimentsPane" AutoHideHeight="300" AutoHideWidth="1000" FloatingHeight="300" FloatingWidth="1000" Closing="Closing">
<acPanes:Experiments x:Name="_ctlExperimentsPane" />
</adl:LayoutAnchorable>
</adl:LayoutAnchorablePane<ad:DockingManager.AnchorableTitleTemplate>
<DataTemplate>
<TextBlock Text="{Binding Path=Title}" VerticalAlignment="Center" Foreground="{DynamicResource DefaultTextColor}" />
</DataTemplate>
</ad:DockingManager.AnchorableTitleTemplate>发布于 2022-01-28 03:22:06
为了更好的理解,你介意展示一些你的主播标题的屏幕截图吗?我复制你的代码,它在我这边运行得很好。
除此之外,也许您可以尝试删除大部分数据绑定。从硬编码标题和内容开始,然后逐个添加绑定(在逐个添加绑定时开始监视所有更改)。我认为这个问题来自于你的数据库。
https://stackoverflow.com/questions/70738382
复制相似问题