windows-8

How to disable the Windows 8 Charms bar programmatically?

给你一囗甜甜゛ 提交于 2020-01-01 06:39:29
问题 I need to create an application that will run full-screen on Windows 8 and which the user shouldn't be able to exit easily. Since the application will be running on computers or tablets with only tactile input, I was going to create a chromeless and top-most WPF application, which could only be closed if a keyboard is connected. The problem is that the app switching bar on the left and the charms bar on the right can still be opened without a keyboard and would allow users to exit the

No P2P in Windows Metro applications?

冷暖自知 提交于 2020-01-01 05:17:06
问题 In the "A .NET developer's view of Windows 8 app development" session at BUILD, the lecturer mentions that only the client-side WCF features are exposed in the Metro profile, we cannot create a server. ( http://channel9.msdn.com/Events/BUILD/BUILD2011/TOOL-930C?format=progressive @ ~34:00) Does this mean that direct peer to peer communication is not possible for Metro applications, and any data exchanged between 2 users over the internet will always have to actually travel through a non-metro

How do we verify Windows 8 in-app billing receipt on the server side?

五迷三道 提交于 2020-01-01 03:39:10
问题 I am currently implementing in-app purchases in an app that I am working for Windows 8. After reading the documentation: Request the license Information for the app: msdn.microsoft.com/en-us/library/windows/apps/windows.applicationmodel.store.licenseinformation.aspx This tells you if the app is trial or not, and the list of products bought using in-app. To perform a purchase you need to use the objects: CurrentApp: In live environment. This will only work when the app is APPROVED in the store

Simulating a Windows 8 Store apps purchase

雨燕双飞 提交于 2020-01-01 03:04:05
问题 I am trying to put together code that simulates purchases for a Windows 8 (Store) app. The code is pretty simple and uses the Windows API: var result = await CurrentAppSimulator.RequestProductPurchaseAsync("product", true); // this is still false... var active = CurrentAppSimulator.LicenseInformation.ProductLicenses["product"].IsActive; The first call opens up the dialog that allows me to simulate the return code from the purchase. Even when i select S_OK, the next line still checks to see if

Where's the HttpUtility.ParseQueryString Method in WinRT?

老子叫甜甜 提交于 2020-01-01 02:45:18
问题 Since HttpUtility is not available in WinRT, I was wondering if there's a straightforward way to parse HTTP query strings? Is there actually some equivalent to HttpUtility.ParseQueryString in WinRT? 回答1: Instead of HttpUtility.ParseQueryString you can use WwwFormUrlDecoder. Here's an example I grabbed here using System; using Microsoft.VisualStudio.TestPlatform.UnitTestFramework; using Windows.Foundation; [TestClass] public class Tests { [TestMethod] public void TestWwwFormUrlDecoder() { Uri

Missing .NET features in Metro style application?

≯℡__Kan透↙ 提交于 2020-01-01 02:00:21
问题 Mostly out of curiosity, I started programming a small "Metro Style" project in Visual Studio 2011, the one that was released in Windows Developer Preview. It combines XAML for the design and C# (in my project) for the code-behind. The C# experience is mostly identical to the one you get on Visual Studio 2008 with .NET framework 4.0, save for these features that I wasn't able to find : System.Console , which make debugging a bit more difficult, And System.Threading.Thread.Sleep(TimeSpan) ,

String encrypt / decrypt with password c# Metro Style

痴心易碎 提交于 2020-01-01 00:43:26
问题 I would like to encrypt and decrypt strings with a password. I use C# and WinRT (MetroStyle). Have somebody a class for encryption/decryption? 回答1: The normal .Net System.Security.Cryptography namespace does not exist in Metro. You use the CryptographicEngine class in Windows.Security.Cryptography.Core namespace instead. If the password is only being verified/authenticated, do not encrypt it. Instead, use the following: using Windows.Security.Cryptography.Core; using Windows.Security

Alternatives to F12 Developer tools in Internet Explorer 10 Metro?

萝らか妹 提交于 2019-12-31 22:22:10
问题 I'm testing our JavaScript-heavy web application on Windows 8. For what it seems, IE10 on desktop works just fine. However, the Metro UI version for IE10 seems to break our application. My question is this: is there a way to debug web applications on IE10 Metro? For what I know, F12 developer tools are not available. 回答1: The rendering/ JS Engine in IE10 Desktop and IE10 should be identical. Does your app use any Add-ins (for things like cut and paste support?) As far as I am aware taking

Visual Studio 2008/2010 on Windows 8 - problems?

跟風遠走 提交于 2019-12-31 21:31:46
问题 I am looking for any information that can be provided regarding problems with the use of Visual Studio 2008 and 2010 on Windows 8 (x64). I have been able find the following article that identifies the acknowledged problems for VS2010 on W8, but I cannot find any similar articles for VS2008. Specifically, I use VS2008 for mobile development so I cannot simply upgrade the projects to 2010/2012 (yet) but I do also have some web application projects and there may even be a couple of console and

What replaces CommandManager in WinRT?

北城以北 提交于 2019-12-31 20:39:11
问题 I'm getting started with Metro style applications (I know we're not supposed to call it Metro, but I can never remember what it's supposed to be called...), and I'm implementing a DelegateCommand class for use in MVVM. In WPF, the ICommand.CanExecuteChanged event is typically implemented like this: public event EventHandler CanExecuteChanged { add { CommandManager.RequerySuggested += value; } remove { CommandManager.RequerySuggested -= value; } } But the CommandManager class does not exist in