Skip to content

Commit 09eff19

Browse files
committed
test: ComboBox_ReopenDropdown
1 parent 99c4150 commit 09eff19

File tree

3 files changed

+40
-0
lines changed

3 files changed

+40
-0
lines changed

src/SamplesApp/UITests.Shared/UITests.Shared.projitems

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3066,6 +3066,10 @@
30663066
<SubType>Designer</SubType>
30673067
<Generator>MSBuild:Compile</Generator>
30683068
</Page>
3069+
<Page Include="$(MSBuildThisFileDirectory)Windows_UI_Xaml_Controls\Button\ComboBox_ReopenDropdown.xaml">
3070+
<SubType>Designer</SubType>
3071+
<Generator>MSBuild:Compile</Generator>
3072+
</Page>
30693073
<Page Include="$(MSBuildThisFileDirectory)Windows_UI_Xaml_Controls\Button\Custom_Button_With_ContentTemplate.xaml">
30703074
<SubType>Designer</SubType>
30713075
<Generator>MSBuild:Compile</Generator>
@@ -9158,6 +9162,9 @@
91589162
<Compile Include="$(MSBuildThisFileDirectory)Windows_UI_Xaml_Controls\Button\ComboBox_Simple.xaml.cs">
91599163
<DependentUpon>ComboBox_Simple.xaml</DependentUpon>
91609164
</Compile>
9165+
<Compile Include="$(MSBuildThisFileDirectory)Windows_UI_Xaml_Controls\Button\ComboBox_ReopenDropdown.xaml.cs">
9166+
<DependentUpon>ComboBox_ReopenDropdown.xaml</DependentUpon>
9167+
</Compile>
91619168
<Compile Include="$(MSBuildThisFileDirectory)Windows_UI_Xaml_Controls\Button\Custom_Button_With_ContentTemplate.xaml.cs">
91629169
<DependentUpon>Custom_Button_With_ContentTemplate.xaml</DependentUpon>
91639170
</Compile>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<UserControl
2+
x:Class="Uno.UI.Samples.Content.UITests.ButtonTestsControl.ComboBox_ReopenDropdown"
3+
xmlns:controls="using:Uno.UI.Samples.Controls"
4+
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
5+
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
6+
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
7+
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
8+
xmlns:not_win="http://uno.ui/not_win"
9+
mc:Ignorable="d not_win"
10+
d:DesignHeight="300"
11+
d:DesignWidth="400">
12+
13+
<StackPanel>
14+
<TextBlock Text="Open the ComboBox, scroll down and select item 10000. Open the ComboBox again. It should immediately open with the selected item showing without a large delay." />
15+
<ComboBox x:Name="cb" />
16+
</StackPanel>
17+
</UserControl>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
using System.Linq;
2+
using Uno.UI.Samples.Controls;
3+
using Microsoft.UI.Xaml.Controls;
4+
5+
namespace Uno.UI.Samples.Content.UITests.ButtonTestsControl
6+
{
7+
[Sample("Buttons", IsManualTest = true)]
8+
public sealed partial class ComboBox_ReopenDropdown : UserControl
9+
{
10+
public ComboBox_ReopenDropdown()
11+
{
12+
this.InitializeComponent();
13+
cb.ItemsSource = Enumerable.Range(0, 20000).ToArray();
14+
}
15+
}
16+
}

0 commit comments

Comments
 (0)