Skip to content

How can I retrieve data from a List Element when the data is not visible when inspected using the FLAUI Inspect tool in a WPF application? #624

Answered by BornAsSlayer
BornAsSlayer asked this question in Q&A
Discussion options

You must be logged in to vote

Solution: Here is the solution that worked for me...

The Problem was with the TextBlock Elements used in building the grid rows. For some reason, TextBlock does not seem to be supported by FlaUI. We changed it to Label and it works now.
My senior helped me figure this out.

Roughly the code looked like this before

<Grid>
  <Border>
    <TestBlock Text="{Binding data}"/>
  </Border>
</Grid>

Now we changed it to this

<Grid>
  <Border>
    <Label Text="{Binding data}"/>
  </Border>
</Grid>

This is what I was expecting. I tried hard not to touch the code written by devs, but it seemed like there was no other way this would work.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by BornAsSlayer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant