UWP App thumbnail preview custom title

shriram 135 Reputation points
2024-03-13T07:26:14.83+00:00

I have an UWP app and i have option to open different pages in separate window and i want to each window with different title and i achieve it using "ApplicationView.GetForCurrentView()". But for the thumbnail preview it shows the display name which mentioned in Package.appxmanifest .

Is there any way to override those thumbnail preview title for an uwp?

Developer technologies | Universal Windows Platform (UWP)
Developer technologies | C#
{count} votes

1 answer

Sort by: Most helpful
  1. Junjie Zhu - MSFT 21,646 Reputation points
    2024-03-14T06:46:25.16+00:00

    Hi @shriram ,

    It is recommended that you use ApplicationView.GetForCurrentView().Title to change the title of each view.

    string newTitle="TitleTest";
    ApplicationView.GetForCurrentView().Title = newTitle;
    
    

    You can get more information in the official samples MultipleViews

    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.


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.