-
Notifications
You must be signed in to change notification settings - Fork 755
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18539 from ramezgerges/navview_android_tapped
- Loading branch information
Showing
4 changed files
with
71 additions
and
0 deletions.
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
32 changes: 32 additions & 0 deletions
32
...pp/UITests.Shared/Windows_UI_Xaml_Controls/NavigationViewTests/NavigationView_Tapped.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,32 @@ | ||
<UserControl | ||
x:Class="UITests.Shared.Windows_UI_Xaml_Controls.NavigationViewTests.NavigationView_Tapped" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
xmlns:muxcontrols="using:Microsoft.UI.Xaml.Controls" | ||
mc:Ignorable="d" | ||
d:DesignHeight="300" | ||
d:DesignWidth="400"> | ||
|
||
<muxcontrols:NavigationView PaneDisplayMode="LeftCompact"> | ||
<muxcontrols:NavigationView.MenuItems> | ||
<muxcontrols:NavigationViewItem Content="Item 1"> | ||
<muxcontrols:NavigationViewItem.MenuItems> | ||
<muxcontrols:NavigationViewItem Content="Item 1.1" /> | ||
</muxcontrols:NavigationViewItem.MenuItems> | ||
</muxcontrols:NavigationViewItem> | ||
</muxcontrols:NavigationView.MenuItems> | ||
<TextBlock> | ||
Manual test for <Hyperlink>https://github.com/unoplatform/uno/issues/18024</Hyperlink> | ||
<LineBreak/> | ||
Test steps: | ||
<LineBreak/> | ||
1. Press the hamburger menu on the left. A pane is supposed to open up (or expand). | ||
<LineBreak/> | ||
2. Press the "Item 1" item in the pane. A new "Item 1.1" item should appear. | ||
<LineBreak/> | ||
3. Press the "Item 1.1" item in the pane. The pane is supposed to collapse. (IMPORTANT) No popups or tooltips should be visible. | ||
</TextBlock> | ||
</muxcontrols:NavigationView> | ||
</UserControl> |
14 changes: 14 additions & 0 deletions
14
...UITests.Shared/Windows_UI_Xaml_Controls/NavigationViewTests/NavigationView_Tapped.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,14 @@ | ||
using Uno.UI.Samples.Controls; | ||
using Microsoft.UI.Xaml.Controls; | ||
|
||
namespace UITests.Shared.Windows_UI_Xaml_Controls.NavigationViewTests | ||
{ | ||
[SampleControlInfo("NavigationView", nameof(NavigationView_Tapped), IsManualTest = true)] | ||
public sealed partial class NavigationView_Tapped : UserControl | ||
{ | ||
public NavigationView_Tapped() | ||
{ | ||
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