Hello!
I have an issue with my XamComboEditor constantly resetting its items selection state. See the example project attached.
In my case I have a XamTabControl representing layers, which tabs are populated via TemplateSelector and can be of three types: A, Band C (each has own view and viewmodel). The latter two types can have links to other (target) layers, and utilize a multiple-choice XamComboEditor there.
The problem arises when I switch between different types of layers. For example:1. When you launch the example app, there is already one layer "A 1"2. Add two layers of type B (click +B button)3. Within each B-layer select any target layer via XamComboEditor:—When you switch between layers of the same type B, the selection of targets is persisted.—Whenever you switch between layers of different types (e.g. from A to B), the selection of targets is reset.
Hello Pavel,
The development team has reviewed the behavior with the SelectedItems not being preserved when selected tabs are changed and concluded that there are a couple of settings that leads to this state. One thing to note is that the SelectedItems binding is left with the default binding mode in the sample which is TwoWay, but the binding should be OneWay:
VerticalAlignment="Top" SelectedItems="{Binding Path=vm.SelectedRegions, Mode=OneWay}"...
static VM() { XamComboEditor.AllowMultipleSelectionProperty.OverrideMetadata(typeof(XamComboEditor), new FrameworkPropertyMetadata(true)); }
Sincerely,ZhivkoAssociate Software Developer
Our developers are working on this issue and you will receive a notification though the CAS-181786-P9V4P9 as soon as we are ready with your fix.
Please let me know if you have any questions.
Hello Zhivko,
Could you please tell me the current status and the approximate date of fix?
Will it be fixed in the nearest update, and when this update is planned to be released?
Kind regards,
Pavel.
Hello Jorg,
Currently our developers are researching the behavior about resetting of SelectedItems collection in XamComboEditor for you. Once they are done with their investigation you would receive a notification.
Sincerely, ZhivkoEntry Level Software Developer
Hi,
I am from the same company as Pavel.
Is there any outcome or progress regarding this issue yet?
Best regards
Jörg