<Application> <Extension Category="windows.protocol"> <Protocol Name="mailto" DesiredView="useHalf"> <DisplayName>MailTo Protocol</DisplayName> </Protocol> </Extension> </Application>
<Application> <uap:Extension Category="windows.protocol"> <uap:Protocol Name="mailto" DesiredView="useHalf"> <uap:DisplayName>MailTo Protocol</uap:DisplayName> </uap:Protocol> </uap:Extension> </Application>
<m2:VisualElements DisplayName="App1" Square150x150Logo="Assets\Logo.png" Square30x30Logo="Assets\SmallLogo.png" Description="some description" BackgroundColor="#464646" ForegroundText="light" ToastCapable="true"> <m2:SplashScreen Image="Assets\SplashScreen.png" /> <m2:DefaultTile ShortName="MyApp" Wide310x150Logo="310x150.png" Square310x310Logo="310x310.png" Square70x70Logo="70x70.png" DefaultSize="square150x150Logo"> </m2:DefaultTile> <m2:ApplicationView MinWidth="width320" /> </m2:VisualElements>
<m2:VisualElements DisplayName="App1" Square150x150Logo="Assets\Logo.png" Square30x30Logo="Assets\SmallLogo.png" Description="some description" BackgroundColor="#464646"> <m2:SplashScreen Image="Assets\SplashScreen.png" /> <m2:DefaultTile ShortName="MyApp" Wide310x150Logo="310x150.png" Square310x310Logo="310x310.png" Square70x70Logo="70x70.png"> </m2:DefaultTile> </m2:VisualElements>
<uap:VisualElements DisplayName="App1" Square150x150Logo="Assets\Logo.png" Square44x44Logo="Assets\SmallLogo.png" Description="some description" BackgroundColor="#464646"> <uap:SplashScreen Image="Assets\SplashScreen.png" /> <uap:DefaultTile ShortName="MyApp" Wide310x150Logo="310x150.png" Square310x310Logo="310x310.png" Square71x71Logo="71x71.png"> </uap:DefaultTile> </uap:VisualElements>
<Prerequisites> <OSMinVersion>6.3.0</OSMinVersion> <OSMaxVersionTested>6.3.0</OSMaxVersionTested> </Prerequisites>
PS D:\Porting to Windows 10\TesT10\TesT> D:\Porting to Windows 10\TesT10\TesT\Upgrade_to_uwp.ps1 Converting TesT.csproj... True <ItemGroup> <AppxManifest Include="Package.appxmanifest"> <SubType>Designer</SubType> </AppxManifest> <None Include="TesT_StoreKey.pfx" /> <None Include="TesT_TemporaryKey.pfx" /> <Page Include="CharmStyle3.xaml"> <Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </Page> <Page Include="CharmStyle2.xaml"> <Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </Page> <Page Include="CharmStyle1.xaml"> <Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </Page> <Content Include="Assets\en-US\redactor.png" /> <Content Include="Assets\en-US\SplashScreen.png" /> <Content Include="Assets\Logo.scale-100.png" /> <Content Include="Assets\Logo.scale-140.png" /> <Content Include="Assets\Logo.scale-180.png" /> <Content Include="Assets\Logo.scale-80.png" /> <Content Include="Assets\LogoImage.png" /> <Content Include="Assets\LogoOpenFile.png" /> <Content Include="Assets\redactor.png" /> <Content Include="Assets\ru-RU\redactor.png" /> <Content Include="Assets\ru-RU\SplashScreen.png" /> <Content Include="Assets\SmallLogo.scale-140.png" /> <Content Include="Assets\SmallLogo.scale-180.png" /> <Content Include="Assets\SmallLogo.scale-80.png" /> <Content Include="Assets\StoreLogo.scale-100.png" /> <Content Include="Assets\StoreLogo.scale-140.png" /> <Content Include="Assets\StoreLogo.scale-180.png" /> <Content Include="Assets\WideLogo.scale-100.png" /> <Content Include="Assets\WideLogo.scale-140.png" /> <Content Include="Assets\WideLogo.scale-180.png" /> <Content Include="Assets\WideLogo.scale-80.png" /> <CopyToOutputDirectory>Always</CopyToOutputDirectory> </Content> <Content Include="ENdemo\image1.jpg"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </Content> <Content Include="imgfolder\press1.png" /> <Content Include="imgfolder\press2.png" /> <Content Include="imgfolder\press3.png" /> <Page Include="Common\StandardStyles.xaml"> <Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </Page> <Page Include="FilesPage.xaml"> <Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType> </Page> <Content Include="imgfolder\right1.png" /> <None Include="Package.StoreAssociation.xml"> <SubType>Designer</SubType> </None> <Content Include="updownleftright.jpg" /> <Content Include="imgfolder\wrong1.png" /> <Content Include="demo\????\1.jpg" /> <Content Include="demo\????\2.jpg" /> <PRIResource Include="en-US\Resources.resw" /> <Content Include="ENdemo\demo.tstf"> <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> </Content> <PRIResource Include="ru-RU\Resources.resw" /> <None Include="Common\ReadMe.txt" /> <Page Include="Flyout.xaml"> <Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType> </Page> <Page Include="FlyoutAbout.xaml"> <Generator>MSBuild:Compile</Generator> <SubType>Designer</SubType> </Page> </ItemGroup>. D:\Porting to Windows 10\TesT10\TesT\Upgrade_to_uwp.ps1:53 :3 + $FileContents = $FileContents -replace "$AppManifestIdentityGroup", ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (<ItemGroup> ... </ItemGroup>:String) [], RuntimeException + FullyQualifiedErrorId : InvalidRegularExpression Finished updating csproj file Converting Package.appxmanifest... True Finished updating package.appxmanifest Creating project.json... Done
<Content Include="demo\????\2.jpg" />
<Extensions> <Extension Category="windows.fileOpenPicker"> <FileOpenPicker> <SupportedFileTypes> <FileType>.tstf</FileType> </SupportedFileTypes> </FileOpenPicker> </Extension> <Extension Category="windows.fileTypeAssociation"> <FileTypeAssociation Name="testredactor"> <DisplayName>ms-resource:takeatest</DisplayName> <Logo>Assets\LogoOpenFile.png</Logo> <SupportedFileTypes> <FileType>.tstf</FileType> </SupportedFileTypes> </FileTypeAssociation> </Extension> <Extension Category="windows.contactPicker" /> </Extensions>
<Extensions> <uap:Extension Category="windows.fileOpenPicker"> <uap:FileOpenPicker> <uap:SupportedFileTypes> <uap:FileType>.tstf</uap:FileType> </uap:SupportedFileTypes> </uap:FileOpenPicker> </uap:Extension> <uap:Extension Category="windows.fileTypeAssociation"> <uap:FileTypeAssociation Name="test"> <uap:SupportedFileTypes> <uap:FileType>.tstf</uap:FileType> </uap:SupportedFileTypes> </uap:FileTypeAssociation> </uap:Extension> </Extensions>
SettingsPane.GetForCurrentView().CommandsRequested += OnCommandsRequested; // ........ void OnCommandsRequested(SettingsPane sender, SettingsPaneCommandsRequestedEventArgs args) { try { SettingsCommand sCommand = new SettingsCommand("SettingsPage", "Settings", new UICommandInvokedHandler(onSettingsCommand)); args.Request.ApplicationCommands.Add(sCommand); SettingsCommand shareQCommand = new SettingsCommand("ShareQuestion", "Share", new UICommandInvokedHandler(onShareQCommand)); args.Request.ApplicationCommands.Add(shareQCommand); } catch { } } private void onSettingsCommand(IUICommand command) { // ..... FlyOut } private void onShareQCommand(IUICommand cmd) { DataTransferManager.ShowShareUI(); }
public MainPage() { this.InitializeComponent(); ApplicationView.GetForCurrentView().SetPreferredMinSize(new Size { Width = 500, Height = 400 }); ApplicationView.PreferredLaunchViewSize = new Size { Height = 800, Width = 600 }; ApplicationView.PreferredLaunchWindowingMode = ApplicationViewWindowingMode.PreferredLaunchViewSize; }
Source: https://habr.com/ru/post/268017/