Skip to content

Commit 5eb5717

Browse files
Fix VisualState that was crashing, had a reference to unused element
1 parent a5632a9 commit 5eb5717

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Microsoft.Toolkit.Uwp.UI.Controls.Core/TabbedCommandBar/TabbedCommandBar.xaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,14 @@
3030
<RowDefinition Height="*" />
3131
</Grid.RowDefinitions>
3232
<VisualStateManager.VisualStateGroups>
33+
<VisualStateGroup x:Name="AutoSuggestGroup">
34+
<VisualState x:Name="AutoSuggestBoxVisible" />
35+
<VisualState x:Name="AutoSuggestBoxCollapsed">
36+
<VisualState.Setters>
37+
<Setter Target="TopPaneAutoSuggestArea.Visibility" Value="Collapsed" />
38+
</VisualState.Setters>
39+
</VisualState>
40+
</VisualStateGroup>
3341
<VisualStateGroup x:Name="BackButtonGroup">
3442
<VisualState x:Name="BackButtonVisible" />
3543
<VisualState x:Name="BackButtonCollapsed">

0 commit comments

Comments
 (0)