Fernando Sousa
Fernando Sousa

Reputation: 241

Remove option to choose between the three pages in Settings Page

I am develop an UWP app, and I am using Template10 (Hamburguer Menu). In Settings Page, there is, by default, 3 pages: Settings, About and Privacy statement.

enter image description here

I want only one page - Settings

How do I remove that option to choose between the three pages? I already managed to remove it, but it always remains there.

Upvotes: 0

Views: 46

Answers (1)

Sunteen Wu
Sunteen Wu

Reputation: 10627

Please try to find the relative Pivot control in Views->SettingsPage.xaml of your project and delete or commented out the following two PivotItems, the "About and Privacy statement" will gone.

<!--  privacy  -->
<PivotItem
    Padding="0"
    DataContext="{Binding SettingsPartViewModel}"
    Header="Privacy statement">
    <ScrollViewer Margin="0,0,-12,0" VerticalScrollBarVisibility="Auto">
        ...
    </ScrollViewer>
</PivotItem>
<!--  about  -->
<PivotItem Header="About">
    <RelativePanel DataContext="{Binding AboutPartViewModel}">
        ...
    </RelativePanel>
</PivotItem>

Upvotes: 2

Related Questions