How to hide package label display name which is showing in first lunch the application.

Arvind Kumar 0 Reputation points
2024-07-10T04:35:28.3733333+00:00

I want to hide the windows title of my first launch application.

There is Package.appxmanifest. where I have display name. which is showing in first lunch of my application. And the same name also showing when I go to the start/search menu.

I want to hide only title showing in the first launch of the application.

but when go to start/search the application name should display.

Thanks,

Arvind

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
11,743 questions
Universal Windows Platform (UWP)
Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
9,959 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Junjie Zhu - MSFT 18,976 Reputation points Microsoft Vendor
    2024-07-15T01:52:28.57+00:00

    Hi @Arvind kumar ,

    I want to hide only title showing in the first launch of the application.

    This can be done by setting ApplicationViewTitleBar.ButtonBackground to transparent.

    public MainPage()
    {
        this.InitializeComponent();
        ApplicationViewTitleBar coustomTitleBar = ApplicationView.GetForCurrentView().TitleBar;
        coustomTitleBar.ButtonBackgroundColor = Colors.Transparent;
        CoreApplicationViewTitleBar coreTitleBar = CoreApplication.GetCurrentView().TitleBar;
        coreTitleBar.ExtendViewIntoTitleBar = true;
    }
    

    but when go to start/search the application name should display.

    I searched for API documentation related to launch, and there is no public API to listen for users going to start/search.

    Thank you.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.