win-universal-app

How to generate a new .pfx file after being lost from source control?

大憨熊 提交于 2019-12-03 08:26:21
问题 I'm using GitHub to host an open-source Windows 10 app I'm developing. I accidentally gitignored my app's PFX file, so when I deleted my local copy and re-cloned the repo, I was left without a MyApp_TemporaryKey.pfx file. Now Visual Studio is complaining about this, and I'm unable to build the solution. How do I regenerate this file so I can run the app again? Thanks for helping. 回答1: Typically, missing .pfx file will only raise several Warnings in Visual Studio and it won't affect the

Deploy UWP App Project In VS2015

好久不见. 提交于 2019-12-03 08:19:38
问题 In visual studio 2015 I created an UWP (Universal Windows Platform) app, and try to debug and run it in Windows 10 Mobile 5" emulator. But it shows me this error : the project app1 needs to be deployed before it can be started. verify the project is selected to be deployed the solution configuration manager, or deploy it explicitly by clinking one of the deploy commands in the build menu. What is deploy? And how I can deploy my project !? Thanks ! Here is the error image: 回答1: Right click on

Universal Windows Platform Apps and C++/CLI (VS 2015 RC1)

孤者浪人 提交于 2019-12-03 07:45:38
I have some C++/CLI code which derives from the .NET System Namespace classes. Is there a way to reuse this code for Universal Windows Platform Apps? I can't get a reference to the System Namespace in C++, though in C# it is possible. It looks like there is only support for C++/Cx code and not for managed C++/CLI. The syntax and keywords of the C++/CX extension resembles C++/CLI a great deal. But that's where similarity ends, they have nothing whatsoever in common. C++/CX gets compiled directly to native code, just like native C++. But C++/CLI is compiled to MSIL, the intermediate language of

Create Round Button with Border IN UWP Windows 10 C#

余生颓废 提交于 2019-12-03 05:45:24
I am trying to create a round button, with a White Border and a Transparent Background (as the old AppBarButtons in Windows 8.1) in UWP Windows 10. I have found several samples like these: https://comentsys.wordpress.com/2015/05/23/windows-10-universal-windows-platform-custom-button/ https://social.msdn.microsoft.com/Forums/sqlserver/en-US/cda7a526-5e99-4d4a-a73c-0be4ce77f961/uwpwindows10-how-to-make-button-with-round-edges?forum=wpdevelop&prof=required But the problem is with the Border. When I setting the BorderBrush to a certain color, it turns out the Border is for Button's "Rectangle". Is

UWP Deployment Error after deploying to store - Windows 10

旧时模样 提交于 2019-12-03 05:29:54
Since deploying my UWP app for windows 10 in the store (beta & private), I can no longer deploy it to my phone (ARM), Tablet Simulator (x86) and my local machine (Surface Pro 3) for testing. I've rebooted both my phone and my SP3 but I'm still getting the same error: Severity Code Description Project File Line Suppression State Error Error : DEP0001 : Unexpected Error: Install failed. Please contact your software vendor. (Exception from HRESULT: 0x80073CF9) I've googled the error and found this article: https://msdn.microsoft.com/en-us/library/windows/desktop/hh973484(v=vs.85).aspx According

Cannot load shared 'project' in Windows Universal app after upgrading to Azure SDK 2.6

烂漫一生 提交于 2019-12-03 05:18:48
I've just installed the April 2015 release of the Azure SDK . It is version 2.6 and previously I was on 2.5. Now one of my projects will not load. It is the shared project in a Windows Universal application. When I right-click the project and choose 'reload' I get the pop-up error The method or operation is not implemented The output window gives more detail: Things.Shared.shproj : error : The composition produced a single composition error. The root cause is provided below. Review the CompositionException.Errors property for more detailed information. 1) No exports were found that match the

MVVM light can't work in Windows 10 Universal app

旧时模样 提交于 2019-12-03 05:18:13
问题 I tried to use MVVMLight in our Windows 10 Universal app, but it seems like that it totally can't work. I've seen this blog Nuget downloaded and added a reference to the MVVM Light assemblies Nuget also added the ViewModelLocator in the Application.Resources. Can't see the Locator in Application.Resources 回答1: You need to create the ViewModelLocator manually, please follow these steps: Create a new Windows 10 Universal app, for example: MVVMLightUWPApp1 Add reference to MVVMLight using NuGet

UWP ObservableCollection sorting and grouping

限于喜欢 提交于 2019-12-03 05:11:38
问题 In UWP apps, how can you group and sort an ObservableCollection and keep all the live notification goodness? In most simple UWP examples I've seen, there is generally a ViewModel that exposes an ObservableCollection which is then bound to a ListView in the View. When items are added or removed from the ObservableCollection, the ListView automatically reflects the changes by reacting to the INotifyCollectionChanged notifications. This all works fine in the case of an unsorted or ungrouped

How can I simulate a DeviceLost event with Win2D?

北战南征 提交于 2019-12-03 04:51:10
I have a CanvasControl in a UWP app and I've noticed when I leave my Surface alone for a while and it goes to sleep automatically, the CanvasControl no longer works after resuming. The previously drawn bitmap is now blank. I tried to simulate Suspend/Resume in Visual Studio 2015, but that doesn't seem to cause a problem. It resumes fine. I have a feeling it has to do with the CanvasDevice.DeviceLost event, and although I manage that with the CanvasControl.CreateResources event, I can't find a way to easily test it. I tried the following: // This throws an exception. Not allowed to do this.

How to horizontally align AppBarButton in command bar

拜拜、爱过 提交于 2019-12-03 02:48:13
I want to align my single AppBarButton to the right on a CommandBar in a Page.BottomBar ? In design it shows the app bar button at the right side but in the emulator, the button is always at the center? Is there a way to align AppBarButton in a page bottom bar ? Edit: <Page.BottomAppBar> <CommandBar HorizontalAlignment="Right" HorizontalContentAlignment="Right"> <CommandBar.PrimaryCommands> <AppBarButton Margin="100,0,0,0" HorizontalAlignment="Right" HorizontalContentAlignment="Right" IsEnabled="True" Name="btnNext" Icon="Next" x:Uid="AppBarNext" Label="Next1"></AppBarButton> </CommandBar