Agrupar aplicativos em uma pasta no menu iniciarGroup applications under a folder in the Start menu
Importante
Esse recurso está disponível no momento em compilações preliminares do Windows 10 que são distribuídas por meio do anel de desenvolvimento do programa Windows Insider.This feature is currently available in preliminary Windows 10 builds which are distributed through the Dev Ring of the Windows Insider program. Será necessário pelo menos o Build 20257 para habilitar esse recurso.You will need at least build 20257 to enable this feature.
O manifesto de um aplicativo empacotado MSIX contém uma ou mais <Application>
entradas, que são os pontos de entrada disponíveis.The manifest of a MSIX packaged application contains one or more <Application>
entries, which are the available entry points. Cada um deles se tornará um ícone no menu iniciar.Each of them will become an icon in the Start menu.
Um pacote MSIX pode conter vários aplicativos.A MSIX package can contain multiple applications. Como alternativa, uma empresa pode criar vários aplicativos, que são empacotados como pacotes MSIX separados, mas todos pertencem ao mesmo conjunto.Alternatively, a company can build multiple applications, which are packaged as separate MSIX packages, but they all belong to the same suite. Em ambos os cenários, talvez você queira agrupar todas as entradas no menu iniciar em uma única pasta, para que, para o usuário, seja mais fácil localizar todos os aplicativos no mesmo local.In both scenarios, you may want to group together all the entries in the Start menu under a single folder, so that for the user it's easier to find all the applications in the same place.
Essa meta pode ser obtida usando a VisualGroup
Propriedade do VisualElements
Item.This goal can be achieved using the VisualGroup
property of the VisualElements
item.
Estas são as etapas para implementar essa alteração:Here are the steps to implement this change:
Abra o arquivo de manifesto do seu aplicativo com um editor de texto escolhido.Open the manifest file of your application with a text editor of choice. Como alternativa, se você estiver usando a ferramenta de empacotamento MSIX, poderá pressionar o botão abrir manifesto no editor de pacote.Alternatively, if you're using the MSIX Packaging Tool, you can press the Open manifest button in the Package Editor.
Verifique se o
uap3
namespace está declarado no<Package>
nó do manifesto:Make sure that theuap3
namespace is declared in the<Package>
node of the manifest:<Package ... xmlns:uap3="http://schemas.microsoft.com/appx/manifest/uap/windows10/3" IgnorableNamespaces="... uap3"> ... </Package>
Localize a seção
Applications
.Locate theApplications
section. Dentro de você encontrará uma ou maisApplication
entradas, uma para cada ícone que será criado no menu iniciar.Inside you will find one or moreApplication
entries, one for every icon which will be created in the Start menu. É assim que se parecerá com:This is how it will look like:<Applications> <Application> <VisualElements DisplayName="App1" Square150x150Logo="images/150x150.png" Square44x44Logo="images/44x44.png" Description="App1" BackgroundColor="#777777" AppListEntry="default"> <uap:SplashScreen BackgroundColor="#777777" Image="images/splash.png"/> </VisualElements> </Application> <Application> ... </Application> </Applications>
Adicione o
uap3
prefixo àVisualElements
seção.Add theuap3
prefix to theVisualElements
section. Lembre-se de adicioná-lo tanto às marcas de abertura quanto de término:Remember to add it both to the opening and ending tags:<Applications> <Application> <uap3:VisualElements DisplayName="App1" Square150x150Logo="images/150x150.png" Square44x44Logo="images/44x44.png" Description="App1" BackgroundColor="#777777" AppListEntry="default"> <uap:SplashScreen BackgroundColor="#777777" Image="images/splash.png"/> </uap3:VisualElements> </Application> <Application> ... </Application> </Applications>
Por fim, adicione o
VisualGroup
atributo aoVisualElements
Item.Finally, add theVisualGroup
attribute to theVisualElements
item. Como valor, defina o nome que você deseja dar à pasta que será criada no menu iniciar.As value, set the name you want to give to the folder that will be created in the Start menu.<Applications> <Application> <uap3:VisualElements DisplayName="App1" Square150x150Logo="images/150x150.png" Square44x44Logo="images/44x44.png" Description="App1" BackgroundColor="#777777" AppListEntry="default" VisualGroup="MyFolder"> <uap:SplashScreen BackgroundColor="#777777" Image="images/splash.png"/> </uap3:VisualElements> </Application> <Application> ... </Application> </Applications>
Agora você pode repetir o processo para todas as outras <Application>
entradas que deseja incluir na mesma pasta.Now you can repeat the process for all the other <Application>
entries that you want to include in the same folder. Opcionalmente, você também pode fazer o mesmo com outros aplicativos, simplesmente editando o arquivo de manifesto incluído em seu pacote MSIX da mesma maneira e usando o mesmo valor para o VisualGroup
atributo.Optionally, you can do the same also with other applications, by simply editing the manifest file included in their MSIX package in the same way and using the same value for the VisualGroup
attribute.