windows-8

ServicePoint.Expect100Continue for Windows Store Apps

拟墨画扇 提交于 2019-12-22 18:20:46
问题 As the title says, i need to set this flag to false for my app, like so: ServicePoint.Expect100Continue = false; However neither ServicePoint nor ServicePointManager are accessible, and i can't find another way to set this property. Also, there is no app.config so setting it via configuration is also not possible. If i do no set this to false, the flag is sent in the request and a CommunicationException occurs. I cannot change server code, i am only a consumer of server data. The service is

Geolocating IP Address in C#

为君一笑 提交于 2019-12-22 18:06:26
问题 I am developing an windows 8 app in C# And want to get Geo Coordinates of IP addresses or Want an API that can exactly or nearly geolocate the IP address in windows 8 app! Thanks in advance for your help! 回答1: Just use a web service here is free one 10000 requests per hour http://freegeoip.net/static/index.html REST Call http://freegeoip.net/xml/[your ip] EDIT Simple code to download from a url using (var objClient = new System.Net.WebClient()) { var strFile = objClient.DownloadString("http:/

Metro IndexedDB, browsing the database

六眼飞鱼酱① 提交于 2019-12-22 17:41:18
问题 I am trying to store data in a "Metro" App for Windows 8 using IndexedDB. I would like to be able to browse the database (to monitor that my operations modify the data as intended). So my question is; Is there any way of viewing the actual database of a metro app (IE10)? (something like in Chrome Dev Tools (Resources > IndexedDB)) Regards 回答1: Not that I know, but my linq2indexeddb library has a viewer in it. That way you can inspect the content of you database while debugging. The nuget

state handling in windows 8 using mvvmlight

点点圈 提交于 2019-12-22 12:38:09
问题 Implementation of state handling in windows 8 using mvvmlight Is there any method avilable in mvvmligt to manage states in WinRT? How I can duplicate the functionality of default Suspensionmanager by using WinRT? And the second one is about managing navigation cycle ie if I navigated from page A - > B. and the go for suspend and shutdown state. When I re start the application in need to open page B. and while presses back key I need to load A. How I can effectively implement this using MVVM

SimpleIoC - Type not found in cache: Windows.UI.Xaml.Controls.Frame

安稳与你 提交于 2019-12-22 12:17:10
问题 I am running into the below error the first time my ViewModel is being instantiated by the SimpleIoC. I believe I have setup the container as it should be, but for some reason, I am still getting the below error. Any ideas or assistance would be very much appreciated. Microsoft.Practices.ServiceLocation.ActivationException was unhandled by user code HResult=-2146233088 Message=Type not found in cache: Windows.UI.Xaml.Controls.Frame. Source=GalaSoft.MvvmLight.Extras StackTrace: at GalaSoft

AuthenticationToken is null

天涯浪子 提交于 2019-12-22 11:23:17
问题 I'm currently writing a C# metro app for the Windows 8 consumer preview which fetches some data from my REST-based web services. I want the app to authenticate against the services using the Windows Live account of the current user. Therefore, I added the Windows Live SDK to my solution and pasted the following snippet from the documentation into my login view: LiveAuthClient liveClient = new LiveAuthClient(); LiveLoginResult loginResult = await liveClient.Login(new string[] { "wl.signin" });

Windows Live SDK doesn't LogOut()

自作多情 提交于 2019-12-22 10:55:51
问题 Microsoft Live ID is now called Microsoft Account. Having said that, let's say I log into Windows 8 as sam@email.com and run an app. That app uses the Live SDK to access my Microsoft Account profile. Before it can do so, however, I must give it explicit permission and log in. So far, perfect. Though I gave the app permission to sam@email.com I want to change it to janet@email.com so I click the app's Logout button which queries LiveAuthClient.CanLogout() from the SDK. Confusingly, the SDK

How to check if file exists in StorageFolder in WinRT [duplicate]

泪湿孤枕 提交于 2019-12-22 10:54:51
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: Check if a file exists in the project in WinRT I'm using the StorageFolder and need to check if a file exists befor I read it to avoid a exception. my code looks like this: StorageFolder storageFolder = ApplicationData.Current.LocalFolder; StorageFile sampleFile = await storageFolder.GetFileAsync(myPath); the problem is, I can't find a method which checks if a file exist 回答1: Last time I checked you had to catch

Imagick on Windows 8 xampp

拟墨画扇 提交于 2019-12-22 10:51:15
问题 I want to install imagick on windows 8 64bit, xampp. I have tried all methods in internet how to solve this problem, but none helped me ( have tried more than 10 methods ). In all results i get error while launching apache. Apache 2.2.21 PHP 5.3.8 Windows 8 64 Latest method i have tried: http://w3facility.info/question/how-to-install-imagemagick-for-php5-35-4-on-windows-8-x64/ In case i change to extension=php_imagick_nts.dll error looks like: The program can't start because php5.dll is

Exception thrown when WebAuthenticationBroker receives an OAuth2 callback

天大地大妈咪最大 提交于 2019-12-22 10:39:08
问题 The WebAuthenticationBroker doesn't seem to be able to handle navigation to my ms-app:// . Just throws this ugly error as you will see below. Steps Call AuthenticateAsync() , including callback uri obtained at runtime: WebAuthenticationBroker.GetCurrentApplicationCallbackUri() Go through authorize process, hit Allow . Instead of returning, the broker shows the page Can't connect to service. We can't connect to the service you need right now. Unable to do anything, so I hit the Back button