View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001658 | NoesisGUI | C# SDK | public | 2020-04-15 04:48 | 2020-04-16 15:46 |
| Reporter | ai_enabled | Assigned To | sfernandez | ||
| Priority | normal | Severity | minor | ||
| Status | resolved | Resolution | no change required | ||
| Product Version | 3.0.0 | ||||
| Target Version | 3.0.0 | Fixed in Version | 3.0.0 | ||
| Summary | 0001658: Binding to ObservableCollection doesn't trigger change event anymore | ||||
| Description | Hi guys, I'm not sure whether it's intended but in 2.2.6 it works fine while in 3.0.0b7 it's broken (and we've missed it during early testing). For example: Where AccessibleVehicles is a readonly property of ObservableCollection<> type. I was able to workaround it by adding NotifyPropertyChanged(nameof(AccessibleVehicles)) but it's really weird as in 2.2.6 it works just fine! We have several such cases in the code. Regards! | ||||
| Platform | Any | ||||
|
Here is the code of the converter:
|
|
|
I've checked with WPF and the behavior seems correct. You probably should use collection Count as the trigger of property change: And use a converter that checks the value of the Count to determine the visibility. |
|
|
Thank you for investigating! The advice with binding to Count is a golden one :-) I never thought about this! |
|
|
You're welcome. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2020-04-15 04:48 | ai_enabled | New Issue | |
| 2020-04-15 04:49 | ai_enabled | Note Added: 0006208 | |
| 2020-04-15 04:49 | ai_enabled | Note Edited: 0006208 | |
| 2020-04-16 09:56 | sfernandez | Assigned To | => sfernandez |
| 2020-04-16 09:56 | sfernandez | Status | new => feedback |
| 2020-04-16 09:56 | sfernandez | Target Version | => 3.0.0 |
| 2020-04-16 09:56 | sfernandez | Note Added: 0006214 | |
| 2020-04-16 15:43 | ai_enabled | Note Added: 0006216 | |
| 2020-04-16 15:43 | ai_enabled | Status | feedback => assigned |
| 2020-04-16 15:46 | sfernandez | Status | assigned => resolved |
| 2020-04-16 15:46 | sfernandez | Resolution | open => no change required |
| 2020-04-16 15:46 | sfernandez | Fixed in Version | => 3.0.0 |
| 2020-04-16 15:46 | sfernandez | Note Added: 0006217 |