Skip to content

Commit 634636e

Browse files
committed
Hide unused Settings button
1 parent 9040a18 commit 634636e

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

CommunityToolkit.Labs.Shared/AppLoadingView.xaml.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,14 +85,14 @@ protected override void OnNavigatedTo(NavigationEventArgs e)
8585
return;
8686
}
8787

88-
//#if LABS_ALL_SAMPLES
89-
// ScheduleNavigate(typeof(Shell), sampleDocs);
90-
//#else
88+
#if LABS_ALL_SAMPLES
89+
ScheduleNavigate(typeof(Shell), sampleDocs);
90+
#else
9191
var samples = FindReferencedSamples().ToArray();
9292

9393
(IEnumerable<ToolkitSampleMetadata> Samples, IEnumerable<ToolkitFrontMatter> Docs, bool AreDocsFirst) displayInfo = (samples, sampleDocs, false);
9494
ScheduleNavigate(typeof(TabbedPage), displayInfo);
95-
//#endif
95+
#endif
9696
}
9797

9898
// Needed because Frame.Navigate doesn't work inside of the OnNavigatedTo override.

CommunityToolkit.Labs.Shared/Pages/Shell.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
1+
<!-- Licensed to the .NET Foundation under one or more agreements. The .NET Foundation licenses this file to you under the MIT license. See the LICENSE file in the project root for more information. -->
22
<Page x:Class="CommunityToolkit.Labs.Shared.Pages.Shell"
33
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
44
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
@@ -20,6 +20,7 @@
2020
Icon="ms-appx:///Assets/AppTitleBar.png" />
2121
<muxc:NavigationView x:Name="NavView"
2222
Grid.Row="1"
23+
IsSettingsVisible="False"
2324
Margin="0,16,0,0"
2425
IsBackButtonVisible="Collapsed"
2526
ItemInvoked="NavView_ItemInvoked">

0 commit comments

Comments
 (0)