View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001839 | NoesisGUI | C++ SDK | public | 2020-11-17 12:20 | 2021-01-14 13:14 |
| Reporter | satorp | Assigned To | sfernandez | ||
| Priority | normal | Severity | major | ||
| Status | resolved | Resolution | fixed | ||
| Product Version | 3.0.7 | ||||
| Target Version | 3.0.8 | Fixed in Version | 3.0.8 | ||
| Summary | 0001839: ListBoxItem selection is always reverted to the last focused item | ||||
| Description | Consider two Views sharing a single VM which has an LBIndex property. Each View has a ListBox with its SelectedIndex bound to the VM's LBIndex property (ListBox1 on View1, and ListBox2 on View2).
It seems that ListBoxItem always tries to select itself on view activation when it's the last item that received the input focus before the view is deactivated. Since selection state and input focus are two different concepts, I think the selection should not be automatically set. This is also how it works on WPF. | ||||
| Platform | Windows | ||||
|
You mean you have different IView objects? Is this because you have different operating system windows? |
|
|
We have two windows, each with its own IView* (returned by Noesis::CreateView) of two XAML instances. The two XAMLs share the same VM instance. |
|
|
Ok, I checked with WPF and found that we are incorrectly changing selection when a ListBoxItem gets focus from code. WPF does not change list selection in that case. Will fix it for next release. |
|
|
Thank you for the quick response. When is the next scheduled release? In the mean time, do you have any suggestion for workaround? |
|
|
One workaround could be to remove the focus from the ListBoxItem before deactivating the view, that way, when it gets activated again, it won't restore the focus to the ListBoxItem and change the selection. |
|
|
Is the workaround a valid option for you? Can we lower the priority on this? |
|
|
Sorry for late reply. I thought I've replied to this before, but don't know why the note was not added. |
|
|
Fixed for the upcoming 3.0.8 version. |
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2020-11-17 12:20 | satorp | New Issue | |
| 2020-11-17 12:34 | sfernandez | Assigned To | => sfernandez |
| 2020-11-17 12:34 | sfernandez | Status | new => feedback |
| 2020-11-17 12:34 | sfernandez | Note Added: 0006763 | |
| 2020-11-17 13:20 | satorp | Note Added: 0006764 | |
| 2020-11-17 13:20 | satorp | Status | feedback => assigned |
| 2020-11-17 14:10 | sfernandez | Note Added: 0006765 | |
| 2020-11-17 14:10 | sfernandez | Product Version | 3.0 => 3.0.7 |
| 2020-11-17 14:10 | sfernandez | Target Version | => 3.0.8 |
| 2020-11-17 14:32 | satorp | Note Added: 0006766 | |
| 2020-11-17 16:06 | sfernandez | Status | assigned => feedback |
| 2020-11-17 16:06 | sfernandez | Note Added: 0006767 | |
| 2020-12-02 10:39 | sfernandez | Note Added: 0006854 | |
| 2020-12-02 14:25 | satorp | Note Added: 0006855 | |
| 2020-12-02 14:25 | satorp | Status | feedback => assigned |
| 2020-12-02 23:56 | satorp | Note Edited: 0006855 | |
| 2020-12-03 14:07 | sfernandez | Status | assigned => resolved |
| 2020-12-03 14:07 | sfernandez | Resolution | open => fixed |
| 2020-12-03 14:07 | sfernandez | Fixed in Version | => 3.0.8 |
| 2020-12-03 14:07 | sfernandez | Note Added: 0006859 |