Contributions
Re: Cannot access ToolTip property using Object Spy (WPF)
Thanks for your help Robert, It doesn't depend on the MouseEvents, It is hardcoded from the beginning(other tooltip with the same problem, original code base has been changed): <Button x:Name="PART_UncheckedControl" Focusable="False" Background="Transparent" ToolTip="Electronic" Height="18" .... It isn'tbeing changed during the execution either. Screenshot with initial object state is attached. Tooltip hadn't been shown when I took the screenshot. Unfortunately, I don't have access to the Object Spy because QC only have license for that. I will try to create simple wpf form with a tooltip and check whether Object Spy could get a value. Thanks1.9KViews0likes0CommentsRe: Cannot access ToolTip property using Object Spy (WPF)
Hi Robert, Thank you for you reply. It doesn't show the tooltip even if it is hardcoded as a string. In my example above:WPFObject("PART_ToggleButton", "").ToolTip -PART_ToggleButton is a parent object and ToolTip is a property. Object Spy shows ToolTip == "Null Object", when Snoop shows that the value is "Select Tenor". Because it is hardcoded it doesn't depend on the implementation. Thanks, Andrii2KViews0likes2CommentsCannot access ToolTip property using Object Spy (WPF)
Hi, I'm interested in two cases: when ToolTip is Text and when ToolTip is an object. Neither works for me. In both cases Object Spy shows (Null Object) (don't remember the exact text). However, Snoop shows them (please see the screenshot 'test.png'). It seems like Object Spy is not able to dig into visual tree properly. I also tried to access the tooltip manually using WPFObject but it shows the same result: ....WPFObject("Border", "", 1).WPFObject("Grid", "", 1).WPFObject("ItemsControl", "", 1).WPFObject("ContentPresenter", "", 1).WPFObject("DisplayGrid").WPFObject("LeftSideTogglePopup").WPFObject("PART_ToggleButton", "").ToolTip WPFObject("Border", "", 1).WPFObject("Grid", "", 1).WPFObject("ItemsControl", "", 1).WPFObject("ContentPresenter", "", 1).WPFObject("DisplayGrid").WPFObject("LeftSideTogglePopup").WPFObject("ToggleButton", "", 1).ToolTip 1) How can I solvethis issue? 2) Is it possible to find a control by x:Name in the visual tree? This limits our team in testing dynamically set tooltips. Thanks, Andrii2KViews0likes4Comments