2

I know it sounds really simple but I'm new to WinUI 3 and I'm learning it. As you know there isn't really much documents and community about it and it's really hard to find your answers. anyway, I want to change the text of this:

enter image description here

the page code is the default shellpage.xaml made by Template Studio for WinUI 3

1 Answer 1

3

This should work:

<NavigationView Loaded="NavigationView_Loaded"/>
private void NavigationView_Loaded(object sender, RoutedEventArgs e)
{
    if (sender is not NavigationView navigationView ||
        navigationView.SettingsItem is not NavigationViewItem settingsNavigationViewItem)
    {
        return;
    }

    settingsNavigationViewItem.Content = "Awesome Settings";
}
Sign up to request clarification or add additional context in comments.

1 Comment

Thank You, That Worked perfectly. Can you edit your answer and explain a little so I can understand and not to come back and look for your answer every time? or maybe a link to read about it? thanks again.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.