windows-8

Metro Application How to Read XML API?

柔情痞子 提交于 2019-12-31 05:04:07
问题 Ok so I am trying to learn how to work with XAML and how to build new windows metro applications using Visual Studio 11 Developer Preview. I have a problem though I don't know how to read XML files the same way I use to using C#. For example here is how I did it in the past. private void Button_Click(object sender, RoutedEventArgs e) { string UrlString = "http://v1.sidebuy.com/api/get/73d296a50d3b824ca08a8b27168f3b85/?city=nashville&format=xml"; XmlTextReader reader = new XmlTextReader

Using CredEnumerate to pull WebCredentials

☆樱花仙子☆ 提交于 2019-12-31 04:13:11
问题 As part of a password management tool, I am attempting to enumerate IE 10 web site usernames (i.e., auto-complete usernames) by using CredEnumerate . When I call CredEnumerate , it yields several usernames (generic usernames and domain usernames) from within the "Windows Credentials" section of the "Credential Manager", but does not include anything from the "Web Credentials" section of the Credential Manager (Control Panel\User Accounts and Family Safety\Credential Manager). private static

Inter application communication in WinRT

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-31 03:41:31
问题 There are two WinRT applications (C#/Xaml if it matters) on Windows 8. The first app should receive and send some data into the second one. What the best way to do that? Can WCF be used? EDIT: The first app knows about the second one. Actually the second app is an authentication server, it provides only one method to get a token. 回答1: Not possible, this requires loopback support. Something you can only turn on for testing , you cannot rely on it on your user's machine. The CheckNetIsolation

Change the Windows 8 lock screen background?

白昼怎懂夜的黑 提交于 2019-12-31 03:05:34
问题 I would like to change the Windows 8 Lock Screen background image via c# code. I am very familiar with how to do this in Windows 7, and also that Windows 8 doesn't support this method. I tried using Process Monitor while changing it over and over again through SystemSettings.exe but nothing stood out to me. This seems to be the only discussion that's gotten anywhere: http://social.technet.microsoft.com/Forums/en-US/W8ITProPreRel/thread/a8db890c-204f-404a-bf74-3aa4c895b183 回答1: Take a look to

Change the Windows 8 lock screen background?

倖福魔咒の 提交于 2019-12-31 03:05:10
问题 I would like to change the Windows 8 Lock Screen background image via c# code. I am very familiar with how to do this in Windows 7, and also that Windows 8 doesn't support this method. I tried using Process Monitor while changing it over and over again through SystemSettings.exe but nothing stood out to me. This seems to be the only discussion that's gotten anywhere: http://social.technet.microsoft.com/Forums/en-US/W8ITProPreRel/thread/a8db890c-204f-404a-bf74-3aa4c895b183 回答1: Take a look to

Windows Metro Style app occur error with Google Data API Library

允我心安 提交于 2019-12-31 01:55:11
问题 OS: Windows 8 Consumer Preview IDE: Visual Studio 11 Beta I create a Blank Application(Windows Metro style). And add Google Doc API sample code. (It is below) It occur compile Error.( Cannot find type System.ComponentModel.ExpandableObjectConverter in module System.dll ) But When I create a Console Application(Windows), don't occur compile Error and Google Doc API working good. Any ideas? using System; using Google.GData.Client; using Google.GData.Documents; namespace

SignalR won't use Websocket protocol even though I have the protocol installed in windows 8

人盡茶涼 提交于 2019-12-30 21:11:07
问题 I'm using signalr to do some real-time events in my web application. I'm trying to force signalr to use the new websocket protocol but it won't, even if I specify it. $.connection.hub.start({ transport: 'webSockets' }) I definitely have the web socket protocol installed and I am running Windows 8 with IIS 8. What else do I need to do to enable web sockets support in signalr? 回答1: Ensure that your app is using the .NET 4.5 assembly from the SignalR package. If the project is targeting 4.0, or

Add contact to users contaclist in aWindows 8 Metro App

风格不统一 提交于 2019-12-30 18:57:43
问题 I'm creating a Windows 8 Metro App with c# In the app you can search persons in a phonebook. Is there a possibility to add a found contact to the users contact-list? I know you can browse the contacts with the Windows.ApplicationModel.Contacts.Provider, but I can't see how you can add a contact. thanks for help 回答1: You can do so through the Contact Picker Contract. Use ContactPickerUI.AddContact. This will bring up a UI that the user can use to add the Contact you hand it. You cannot add a

Opening a file in Windows Explorer from a Windows 8 app?

隐身守侯 提交于 2019-12-30 17:36:30
问题 I want to write a function that, quite simply minimises my Windows 8 immersive app, and opens a file in explorer - preferably if the file is in a folder with multiple files, with the file highlighted. public async void OpenFile( string filePath) { StorageFile File = await StorageFile.GetFileFromApplicationUriAsync (new Uri(filePath, UriKind.RelativeOrAbsolute)); ; if (File != null) { await Launcher.LaunchUriAsync(new Uri(File.Path)); } } This code gives me a permissions error. Any ideas? 回答1:

Is it possible to attach two debugger to one process?

泄露秘密 提交于 2019-12-30 17:22:55
问题 Is it possible to attach two debugger to one process ? Recently, I had developed a Metro Style App in HTML5/CSS and that was calling a Window Runtime Component written in C#. What I wanted to do was attach two debugger to same process. One at JavaScript & another at C# code. The Step I followed: I opened two visual studio instances targeting same solution. I put a breakpoint in JavaScript code and f5/run the application via VS instance 1. But, when I tried to attach 2nd debugger in C# window