question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

WPF example is behaving weirdly

See original GitHub issue

Hi there,

First let me thank you for the massive and impressive work you did with this library! Observable collections are really something that should get more love in the .Net ecosystem 😃

I noticed something strange with the WPF example that you provide. When I run it locally and press a few times on the “Insert” button, I get the following :

image

The first 3 lines (in red) correspond to the initial items inserted via AddRange and is the tuple (value, view), while the rest (in green) has been added by pressing the “Insert” button and is only the value.

I do not understand why there is a difference, do you have any idea what could be the reason?

I’m also questioning yielding tuples (value, view) when enumerating, instead of only views. Tuples cannot be used directly for <ListView ItemSource={...} />. Is there a reason for this choice?

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
neuecccommented, Nov 21, 2022

sorry for no longer repond it, I’ll check it.

2reactions
darabercommented, Jan 24, 2023

This issue needs to be resolved to make the library usable with WPF bindings.

Sending either a tuple or the actual object makes it unusable with ListView or DataGrid controls since the column bindings completely break. One way around this is tediously implementing IValueConverters for each column that extract the desired property from either a tuple or the object.

Read more comments on GitHub >

github_iconTop Results From Across the Web

.net - Weird rendering behavior in WPF for ToolTips with ...
Late, but I have got workaround. Problem appears when TextBlock/Label is wrapped with StackPanel with flow RoghtToLeft. For example: <StackPanel ...
Read more >
Weird Rendering Issues in WPF-Apps
Weird Rendering Issues in WPF-Apps · Completely reinstalling Windows (issue re-appeared after a day or two) · Updating the graphics driver · Trying ......
Read more >
WPF/XAML GUI behaving strangely or as expected?
I want to change the text on a label on a GUI control. It appears that the actual GUI update does not happen...
Read more >
GridView ComboBox Behaving Weird. in UI for WPF
Hello, So I have a GridView in which I can add new rows and within the columns I can select some combo boxes...
Read more >
Data binding logic continues working after closing window
Hi! I'm relatively new to WPF and I'v encountered a strange issue. For example, let's have MainWindow with MainViewModel and ChildWindow ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found