windows-store

Uwp Grouped GridView with WrapGrid

人走茶凉 提交于 2019-11-28 11:27:22
问题 I'm developing an UWP app and I'm trying to align horizontally my items in each gridview groups I have this : GROUP 1 Data 1 | Data 2 | Data 3 Data 1 | Data 2 | Data 3 Data 1 | Data 2 | Data 3 GROUP 2 Data 1 | Data 2 | Data 3 Data 1 | Data 2 | Data 3 and I want this : GROUP 1 ______________________________Data 1 | Data 2 | Data 3 ______________________________Data 1 | Data 2 | Data 3 ______________________________Data 1 | Data 2 | Data 3 GROUP 2 ______________________________Data 1 | Data 2 |

How to debug memory leaks in Windows Store apps?

∥☆過路亽.° 提交于 2019-11-28 08:43:15
So I have a .NET Windows Store app that is leaking memory. What can I do about it? The profiler tools I used for desktop apps from jetBrains or Red-Gate/ANTS don't support Metro Apps (or do they now?) For the simplest approach - skip to the bottom to read about the description of doing that with Visual Studio 2013. Now there might be some new tools - perhaps something in the updated Visual Studio and I would love to find about these, but I tried WinDbg before with some success. Here are my old notes on how to do that: 1. Create dump file from process manager 2. Run WinDbg (X64) 3. File/Open

FileNotFoundException reading JSON file from Assets folder in Windows Store app

与世无争的帅哥 提交于 2019-11-28 00:53:34
I'm trying to read a json file from my Assets folder. I've tried numerous code examples, and all are variations on the same thing. I feel like I must be doing something stupid, but I just can't see it. string filepath = @"Assets\resources.json"; StorageFolder folder = Windows.ApplicationModel.Package.Current.InstalledLocation; StorageFile file = await folder.GetFileAsync(filepath); // error here var data = await Windows.Storage.FileIO.ReadTextAsync(file); Every time I run the above code I get a System.IO.FileNotFoundException on my app. I've double and tripled checked the file is in the assets

How to get preview buffer of MediaCapture - Universal app

假如想象 提交于 2019-11-27 22:43:27
问题 In Windows phone silverlight, I use PhotoCamera to get buffer frame when start preview video, in universal app I use MediaCapture instead, but I don't know how to get preview buffer. Thanks 回答1: Since Windows Runtime doesn't have Silverlight's PhotoCaptureDevice class, the extremely useful GetPreviewBufferARGB() and GetPreviewBufferYCbCr() methods are not available. The solution you're looking for is to use the MediaCapture.StartPreviewToCustomSinkAsync() method, but this requires C++ skills

How to write txt file in windows app store?

眉间皱痕 提交于 2019-11-27 19:39:13
问题 i have been searching all night to figure out how to write txt file to a specific location like D:\ i tried the StreamWriter and System.IO.File which is not included in the app store applications with no luck so far i would appreciate any help. 回答1: You can't write to any location from Windows Store apps because they are sandboxed, you can only write to app's local folder: string text = "Hello, world"; StorageFolder folder = ApplicationData.Current.LocalFolder; StorageFile file = await folder

Retrieve the Current App version from Package

跟風遠走 提交于 2019-11-27 15:31:25
问题 While I can get the assembly version using the following code var assembly = typeof(App).GetTypeInfo().Assembly; var assemblyVersion = assembly.GetCustomAttribute<AssemblyFileVersionAttribute>().Version; I would like to retrieve the Version from Package.appxmanifest in this case 1.0.0.4 <?xml version="1.0" encoding="utf-8"?> <Package xmlns="http://schemas.microsoft.com/appx/2010/manifest" xmlns:m2="http://schemas.microsoft.com/appx/2013/manifest"> <Identity Name="zzz" Publisher="CN=zzz"

How to Distribute Compiled Windows 8 Metro Applications without Windows Store?

浪尽此生 提交于 2019-11-27 10:01:48
问题 I am just curious if there is a way to package up a Windows 8 Metro application to distribute it to others with the Windows 8 Developer Preview installed? It would be nice to be able to allow someone to just download and install, rather than requiring them to install VS'11 Preview and compile the code themselves in order to test out / use a Windows 8 Metro application that I've built. Is there a way to distribute a compiled Windows 8 Metro application for others to test/use since the Windows

How does Chrome side-load “store apps”?

半世苍凉 提交于 2019-11-27 07:44:33
问题 I have been tasked with writing a simple one-time-use Metro/windows store/modern UI (whatever you want to call it now) app for windows 8; it wouldn't be appropriate to try to get it into the store, because we only plan on deploying it to about 4 or 5 devices. I noticed that when I installed Chrome on the machine, it somehow managed to sneak a metro version of itself into my start menu. I am not looking for a way to deploy a metro app to another machine, I can already do this a variety of ways

How to uninstall an app that another user installed?

此生再无相见时 提交于 2019-11-27 06:35:49
I keep hitting this problem when I try to debug my Windows 8 apps and there is a copy already installed on another user account: DEP0700 : Registration of the app failed. Another user has already installed a packaged version of this app. An unpackaged version cannot replace this. The conflicting package is {{{PackageName}}} and it was published by CN={{{Certificate Stuff}}}. (0x80073cf9) Sometimes I can just log in or ask someone else to log in to the machine and uninstall the app. Alternatively I can change the application name/id, but one is not always possible and the other is risky (I don

Thread.Sleep replacement in .NET for Windows Store

浪子不回头ぞ 提交于 2019-11-27 06:26:12
Thread.Sleep doesn't seem to be supported in .NET for Windows Store apps. For example, this System.Threading.Thread.Sleep(1000); will compile when targeting any .NET Framework (2.0, 3.5, 4.0, 4.5), but not when targeting .NET for Windows Store apps (or in a portable class library which targets both 4.5 and store). System.Threading.Thread is still there, it just doesn't have the Sleep method. I need to delay something for a few seconds in my app, is there a suitable replacement? EDIT why the delay is needed: My app is a game and the delay is to make it look like the computer opponent is