windows-8

Windows Live SDK doesn't LogOut()

眉间皱痕 提交于 2019-12-06 04:04:53
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 returns false (I cannot log out). Why not? Once the current Windows 8 user has logged into a Windows 8 app

Detecting a scroll event in GridView (Windows 8)

孤者浪人 提交于 2019-12-06 03:25:50
How do we detect a scrolling event in GridView (like ViewChanged on ScrollViewer) on somethig like the default GridView template sample app? I'd like to replicate the effect that the netflix App does on the left red strip. I tried putting the GridView inside a scrollviewer, but I've been unsuccessful at stretching it to fill the screen for different resolutions. Update: I intend to use this with VariableGrid control that's on NuGet - though it's not an official control, it inherits GridView The best way to do this seems that you can read through the components of the control, and assign events

Is it possible to use Firebase with a Windows 8 app?

半腔热情 提交于 2019-12-06 03:07:35
I'm hoping to use Firebase in my Windows 8 app made using WinJS. Here is how I am trying to write to the root of my Firebase: var dataRef = new Firebase("https://<firbaseName>.firebaseio.com"); dataRef.set("I am now writing data into Firebase!"); However, this gives me the following error in the JavaScript console: Can’t load <https://<firebaseName>.firebaseio.com/.lp?start=t&ser=66595697&cb=2&v=5>. An app can’t load remote web content in the local context. I've tried to add https://[firebaseName].firebaseio.com/* to my Content URIs in my app manifest but that doesn't seem to be the solution.

Center popup in XAML

倖福魔咒の 提交于 2019-12-06 02:55:54
问题 I have created a Popup by using the following code, but I can not figure out how to center it I tried to automatically change the margin on runtime, but I could not figure out how to do it, but do anybody has an idea of how to center the popup? It does not has a standard-dimension cause I need to globalize my program <Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}" Name="MainGrid"> <Popup x:Uid="LoginPopup" IsOpen="True" Name="LoginPopup"> <Grid> <Grid.RowDefinitions>

Pin tile to selected position on Startscreen (programmatically) Windows 8

橙三吉。 提交于 2019-12-06 02:42:39
I am searching a solution to pin an installed app or desktop application to the windows 8 startscreen. I have figured out to do this like it is described in this post before There has also been a long disscusion about this problem But there was no answer to my question: How can I pin a new tile to a selected position on the startscreen? If I install a new app/application windows 8 pins the new application at the end of the Startscreen. (windows 8.1 does not) But if I want to place the tile f.e. in the second group on third position , there is possibilty to do this. I am in an enterprise

Saving data during the OnSuspending method

混江龙づ霸主 提交于 2019-12-06 02:36:36
For a Windows 8 Application in C/XAML I have to store some data to the LocalState folder. I have some trouble using async/await operator I think. When I am saving datas while the application is running, everything works fine, but when I try to save the data during the OnSuspending method, it seems that my application doesn't wait for my saving method to be finished to suspend the application. The stranger thing is that when I'm debugging and doing all the operation step by step slowly everything works fine, but when I don't put any breakpoints, the application is closed before the data are

WinRT as a replacement of Win32 API

痞子三分冷 提交于 2019-12-06 02:22:08
问题 Over internet there are many blogs saying that winrt is a replacement of win32 api. IS this is really true? Even i read that application developed for Metro Application uses winrt. So do i understand correctly, those application which are metro application they has to go through winrt & classic applications has to go through win32 api's. Please someone validate my conclusions. 回答1: Disclaimer: I am not involved in any way in the design or implementation of Windows 8, and I have only kept up

How to obtain F# powerpack for F# 3.0

自作多情 提交于 2019-12-06 02:06:29
问题 I'm using VS11 Beta on Win 8 Consumer Preview. After install VS11 Beta I have F# 3.0 SDK installed. But I'm not able to find a compatible FSharp.PowerPack.dll as CodePlex only provides PowerPack for F# 2.0. Any idea how to deal with this? 回答1: You can compile the PowerPack sources on your own (against F# 3.0), to make your own copy of the library. Alternatively, I think a binding redirect in your final foo.exe.config, along the lines of https://stackoverflow.com/a/9648673/19299 but

Internet Explorer + Windows8 Touchscreen issues

若如初见. 提交于 2019-12-06 01:51:19
问题 We are experiencing an issue related to Google Maps API V3 . The issue is that while we drag the Marker the map also starts dragging. We are experiencing this issue ONLY on Touch Screens in Windows 8 Environment + Internet Explorer , its fine on NORMAL screens / Mobile Screens - IPaid/ other browsers (Safari and FireFox). We used below solution, but it throws error ( eval javascript error ) in Internet Explorer9 and 10 : google.maps.event.addListener(marker, 'dragstart', function(){ mapObject

How to debug a Windows Store app that crashes on a customer's machine?

核能气质少年 提交于 2019-12-06 01:51:11
I got a support email from a customer saying his app crashes when it starts and all he gets is a message like: (App Name) ran into a problem You can send info to Microsoft about what went wrong to help improve this app. Files that will be sent to Microsoft C:\Users\User_Name\AppData\Local\Temp\WER####.tmp.appcompat.txt C:\Users\User_Name\AppData\Local\Temp\WER####.tmp.hdmp I thought - Microsoft isn't going to help them really with my silly app. They should send the dump file to me for debugging, but how to do it? A sample dump file I got from a crashing app was 90MB and after zipping it is