View Issue Details

IDProjectCategoryView StatusLast Update
0002985NoesisGUIC++ SDKpublic2024-01-02 19:55
Reporter[email protected] Assigned Tosfernandez  
PrioritynormalSeverityminor 
Status resolvedResolutionfixed 
Product Version3.2.2 
Target Version3.2.3Fixed in Version3.2.3 
Summary0002985: Selected Item in Combobox does not have updated display text when its content changes
Description

Hello!

I currently have a ComboBox where, when I change the language of my game, the current value that is shown does not change language.

Then I received a response from sfernandez:
I've just tried and this works as expected in WPF: when selected item changes its Content, it automatically updates the parent ComboBox display text. So it is clearly a bug in Noesis, no need to create any custom ComboBox. Could you please report it in our bugtracker?

Steps To Reproduce

this is the xaml and c++ code I used:

XAML:

            <StackPanel>
              <TextBlock Text="{DynamicResource title}"/>
              <ComboBox
                SelectedIndex="{Binding SelectedItemIndex, Mode=TwoWay}">
                <ComboBoxItem Content="{DynamicResource ex1}"/>
                <ComboBoxItem Content="{DynamicResource ex2"/>
                <ComboBoxItem Content="{DynamicResource ex3}"/>
              </ComboBox>
            </StackPanel>

C++:

int ExampleViewModel::GetSelectedItemIndex() const {
return mItemIndex;
}

void ExampleViewModel::SetSelectedItemIndex(int index) {
mItemIndex = index;
OnPropertyChanged("SelectedItemIndex");
UpdateFilteredList();
}
...
NsProp("SelectedItemIndex", &ExampleViewModel::GetItemIndex,
&ExampleViewModel::SetItemIndex);

PlatformAny

Activities

sfernandez

sfernandez

2024-01-02 19:55

manager   ~0009050

Fixed in changeset 13135

Issue History

Date Modified Username Field Change
2024-01-02 17:22 [email protected] New Issue
2024-01-02 17:59 sfernandez Product Version => 3.2.2
2024-01-02 17:59 sfernandez Target Version => 3.2.3
2024-01-02 17:59 sfernandez Assigned To => sfernandez
2024-01-02 17:59 sfernandez Status new => assigned
2024-01-02 19:55 sfernandez Status assigned => resolved
2024-01-02 19:55 sfernandez Resolution open => fixed
2024-01-02 19:55 sfernandez Fixed in Version => 3.2.3
2024-01-02 19:55 sfernandez Note Added: 0009050