WinUI 3 controls in Simple Island App are invisible until focused
Maintainers usually reply within 8 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Start by running the unmodified Simple Island App and inspect the XAML layout containing the StackPanel, WebView2, and bottom Button. Confirm the controls are present but invisible until focused, then verify that they remain visible after focus moves away on the reported Windows App SDK environment.
Written by the indexing model from the issue text.
Description
Building and running the unmodified Simple Island App project results in a window that looks like this:
However, there are suposed to be WinUI 3 controls on the top and bottom of the WebView2. The XAML has:
<Grid Padding="10">
<Grid.RowDefinitions>
<RowDefinition Height="50"/>
<RowDefinition Height="*"/>
<RowDefinition Height="50"/>
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal" Grid.Row="0">
<Button x:Name="Button" Click="ClickHandler">Click Me</Button>
<TextBox Text="Text goes here" Margin="10" />
</StackPanel>
<WebView2 Grid.Row="1" Source="http://bing.com" />
<Button Grid.Row="2">Last Button</Button>
</Grid>
So there are supposed to be a Button and TextBox above the WebView2, and another Button below it.
If you click where the TextBox control is supposed to be, it shows up:
But then if you click away from it, it disappears again.
I'm using Windows 11 23H2, Windows 11 SDK 10.0.22000.0, Visual Studio 17.8.1, and Windows App SDK 1.4.3 (1.4.231115000).
- Dominant language
- PowerShell
- Stars
- 1k
- Forks
- 335
- Avg merge
- 6d 12h
- Merged PRs (30d)
- 7
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/WindowsAppSDK-Samples
-
"Samples\Content\cpp-win32\Squares\Squares.vcxproj" doesn't configure precompiled headers correctlyOpen
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
microsoft/WindowsAppSDK-Samples#271 ·
Maintainers usually reply within 8 days
-
[WinML] Dependency resolution issues w/ Python sampleMay be free again @adrastogi claimed this 232 days ago, and no pull request is open. Open
microsoft/WindowsAppSDK-Samples#595 · 1 assignee ·
Maintainers usually reply within 8 days
-
Difficulty 4/5 3-5 days Newbie friendliness 28/100
microsoft/WindowsAppSDK-Samples#589 ·
Maintainers usually reply within 8 days
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
microsoft/WindowsAppSDK-Samples#584 ·
Maintainers usually reply within 8 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 25/100
microsoft/WindowsAppSDK-Samples#580 · 1 comment ·
Maintainers usually reply within 8 days
All issues in microsoft/WindowsAppSDK-Samples
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
slopus/happy-desktop#45 ·
Maintainers usually reply within 8 days
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 3 days
-
bug fabrication
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day