UWP App thumbnail preview custom title

shriram 75 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?

Universal Windows Platform (UWP)
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,183 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Junjie Zhu - MSFT 14,136 Reputation points Microsoft Vendor
    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.