Page 1 of 1

Popup and ComboBox do not work together nicely

Posted: 08 Jun 2020, 07:56
by nikobarli
Hi,

Here is the XAML that illustrates the problem. Click the button to show a Popup that has a combobox internally.
The Popup is configured with StaysOpen="False". After the Popup appears, click the combobox and select the item that is shown beyond the Popup Window.

The expected behavior is that the item becomes the selected part of the Combobox and the Popup kept shown (this is the behavior of WPF).
However, the current behavior of NoesisGUI is to close the Popup and item inside the Combobox is not selected.
<Grid Background="White">
    <ToggleButton x:Name="PopupToggle" Height="30" Width="50"  IsChecked="{Binding IsOpen, ElementName=Popup}"></ToggleButton>
    <Popup x:Name="Popup" Placement="Bottom" PlacementTarget="{Binding ElementName=PopupToggle}" StaysOpen="False">
      <Grid Width="100" Height="100" Background="Red">
        <ComboBox Width="50" Height="30">
          <ComboBoxItem>A</ComboBoxItem>
          <ComboBoxItem>B</ComboBoxItem>
          <ComboBoxItem>C</ComboBoxItem>
          <ComboBoxItem>D</ComboBoxItem>
          <ComboBoxItem>E</ComboBoxItem>
          <ComboBoxItem>F</ComboBoxItem>
          <ComboBoxItem>G</ComboBoxItem>
          <ComboBoxItem>H</ComboBoxItem>
          <ComboBoxItem>I</ComboBoxItem>
          <ComboBoxItem>J</ComboBoxItem>
        </ComboBox>
      </Grid>
    </Popup>
  </Grid>
  

Re: Popup and ComboBox do not work together nicely

Posted: 08 Jun 2020, 12:35
by sfernandez
Hi,

Yes, it seems there is something wrong in our code, I was able to reproduce the problem.
Could you please report it in our bugtracker and we will fix it as soon as possible?

Thanks.

Re: Popup and ComboBox do not work together nicely

Posted: 08 Jun 2020, 16:22
by nikobarli
Hi Sergio, thanks for the response. I submitted the bug here: #1713

Re: Popup and ComboBox do not work together nicely

Posted: 10 Jun 2020, 11:22
by sfernandez
Thanks for the report, we have fixed this issue for our next release, and also merged the changeset in the 2.2 branch for you to test (revision 9347).

Re: Popup and ComboBox do not work together nicely

Posted: 10 Jun 2020, 11:42
by nikobarli
Thank you !