-
Notifications
You must be signed in to change notification settings - Fork 691
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(popup): not working after alt-tabbing
- Loading branch information
Showing
4 changed files
with
84 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...esApp/UITests.Shared/Windows_UI_Xaml_Controls/MenuFlyoutTests/MenuFlyout_DroidAltTab.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<UserControl x:Class="UITests.Windows_UI_Xaml_Controls.MenuFlyoutTests.MenuFlyout_DroidAltTab" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:UITests.Windows_UI_Xaml_Controls.MenuFlyoutTests" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:android="http://uno.ui/android" | ||
mc:Ignorable="d android" | ||
d:DesignHeight="300" | ||
d:DesignWidth="400"> | ||
<Grid> | ||
<CommandBar Content="asd" Style="{StaticResource NativeDefaultCommandBar}"> | ||
<CommandBar.PrimaryCommands> | ||
<AppBarButton Content="Here"> | ||
<AppBarButton.Flyout> | ||
<MenuFlyout android:UseNativePopup="True"> | ||
<MenuFlyoutItem Text="asd1" /> | ||
<MenuFlyoutItem Text="asd2" /> | ||
<MenuFlyoutItem Text="asd3" /> | ||
</MenuFlyout> | ||
</AppBarButton.Flyout> | ||
</AppBarButton> | ||
</CommandBar.PrimaryCommands> | ||
</CommandBar> | ||
</Grid> | ||
</UserControl> |
30 changes: 30 additions & 0 deletions
30
...pp/UITests.Shared/Windows_UI_Xaml_Controls/MenuFlyoutTests/MenuFlyout_DroidAltTab.xaml.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Runtime.InteropServices.WindowsRuntime; | ||
using Windows.Foundation; | ||
using Windows.Foundation.Collections; | ||
using Windows.UI.Xaml; | ||
using Windows.UI.Xaml.Controls; | ||
using Windows.UI.Xaml.Controls.Primitives; | ||
using Windows.UI.Xaml.Data; | ||
using Windows.UI.Xaml.Input; | ||
using Windows.UI.Xaml.Media; | ||
using Windows.UI.Xaml.Navigation; | ||
|
||
// The User Control item template is documented at https://go.microsoft.com/fwlink/?LinkId=234236 | ||
|
||
namespace UITests.Windows_UI_Xaml_Controls.MenuFlyoutTests | ||
{ | ||
[Uno.UI.Samples.Controls.SampleControlInfo("MenuFlyout", nameof(MenuFlyout_DroidAltTab), description: Description, IsManualTest = true, IgnoreInSnapshotTests = true)] | ||
public sealed partial class MenuFlyout_DroidAltTab : UserControl | ||
{ | ||
private const string Description = "[ManualTest]: tap 'Here' to open popup, switch app/go to home and come back, tap `Here` and popup should still work."; | ||
|
||
public MenuFlyout_DroidAltTab() | ||
{ | ||
this.InitializeComponent(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters