nikobarli
Topic Author
Posts: 178
Joined: 26 Apr 2017, 06:23

Popup and ComboBox do not work together nicely

08 Jun 2020, 07:56

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>
  

Tags:
 
User avatar
sfernandez
Site Admin
Posts: 1920
Joined: 22 Dec 2011, 19:20

Re: Popup and ComboBox do not work together nicely

08 Jun 2020, 12:35

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.
 
nikobarli
Topic Author
Posts: 178
Joined: 26 Apr 2017, 06:23

Re: Popup and ComboBox do not work together nicely

08 Jun 2020, 16:22

Hi Sergio, thanks for the response. I submitted the bug here: #1713
 
User avatar
sfernandez
Site Admin
Posts: 1920
Joined: 22 Dec 2011, 19:20

Re: Popup and ComboBox do not work together nicely

10 Jun 2020, 11:22

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).
 
nikobarli
Topic Author
Posts: 178
Joined: 26 Apr 2017, 06:23

Re: Popup and ComboBox do not work together nicely

10 Jun 2020, 11:42

Thank you !

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest