AutoSuggestBox
in NavigationView
does not collapse when hidden
#11660
Labels
area/autosuggestbox
Categorizes an issue or PR as relevant to the AutoSuggestBox control
area/navigationview 🧭
Categorizes an issue or PR as relevant to the NavigationView control
difficulty/medium 🤔
Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI
kind/bug
Something isn't working
platform/all
Categorizes an issue or PR as relevant to the all platforms
project/layout 🧱
Categorizes an issue or PR as relevant to layouting and containers (Measure/Arrange, Collections,..)
Current behavior
If the AutoSuggestBox is included in a NavigationView pane and the visibility of the AutoSuggestBox is controlled by a binding, then the space it occupies does not collapse when it disappears. Additionally if the NavigationView pane collapses, the search icon appears indicating a field that does not appear when it is expanded.
Expected behavior
When the AutoSuggestBox collapses the space it occupies also collapses and when the NavigationView pane collaapses no search icon is shown.
How to reproduce it (as minimally and precisely as possible)
Open the attached solution and compile it.
Execute it in any head.
In the attached solution you can show and hide the AutoSuggestBox using a ToogleButton and if the NavigationView pane is collapsed without the AutoSuggestBox you can see the search icon.
Workaround
No known workaround.
Works on UWP/WinUI
No
Environment
Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia
NuGet package version(s)
4.7.44
Affected platforms
WebAssembly, Android, Skia (WPF), Windows
IDE
Visual Studio 2022
IDE version
17.5.1
Relevant plugins
No response
Anything else we need to know?
No response
The text was updated successfully, but these errors were encountered: