windows-8

What/Why does WinRT Create New Clean Layout Randomly

自古美人都是妖i 提交于 2019-12-09 05:18:38
问题 So occasionally and seemingly randomly when developing WinRT apps Visual Studio goes through a lengthy process that starts with "Creating a new clean layout..." I would love more information about the build and deployment process involved with WinRT apps. I understand the concept of creating an application that runs in a sort of sandbox environment, but I'm looking for information about that sandbox environment. Also (this may sound silly) but what is different about the executable created

Windows 8 prepare site for pinning

落花浮王杯 提交于 2019-12-09 04:06:38
问题 I would like to prepare my site for windows 8 pinning and have been reading some documentation on how to add the various images and could figure out that it could be done by using metadata and according to instructions and help on this site I could actually build the following meta tags but i couldn't figure out where I can call the browserdetect.xml file assuming I have the file located at mysitee.com/upload/win8/browserdetetct.xml and the images in the same folder <meta name="application

How to disable a Grid (Panel) in XAML Metro app?

我怕爱的太早我们不能终老 提交于 2019-12-09 03:51:11
问题 I want to emulate modal dialog in XAML Metro App. So I was going to set .IsEnabled = false on all controls apart from the one which will pose as a modal dialog. Apparently IsEnabled not in Grid not in Panel not in FrameworkElement. How to disable it not making a user control out of it? I guess Sinofsky cut so many corners that the whole thing is now more like an Escher staircases. I am loosing my faith. Please help 回答1: Sorry, I am a little late to the party... Here is how I created a modal

Windows 8 apparently removes content-encoding header from compressed HTTP responses

情到浓时终转凉″ 提交于 2019-12-09 02:36:57
问题 I'm not completely sure whether this belongs on SO, but I don't know where else to ask. While I was checking the loading speed of a web app of mine I noticed that apparently no HTTP response (no matter what type - html, css, js) is gzip/deflate compressed. That is, no response header like "Content-Encoding: gzip" is present in any request and the browser reports that the resource is not compressed. tested and confirmed in multiple browsers (IE10, FF 17, Chrome 23, Opera 12.10, Safari 5.x)

Place holder or watermark in TextBox windows 8

佐手、 提交于 2019-12-09 02:22:07
问题 I want to show a placeholder text in TextBox when user hasn't typed anything and TextBox is idle. In Andriod it can be done using android:hint="some Text" In iPhone it can be done as textFild.placeholder = "some text"; How can I do it in windows 8 metro apps? Thanks 回答1: Edit for windows-8.1 they have introduced a new property <TextBox x:Name="UserName" PlaceholderText="User Name"/> Please see Sergey Aldoukhov's answer For me this is the working solution that I got. If any one has better

How to tell if JS Windows8 metro app is visible or not

こ雲淡風輕ζ 提交于 2019-12-09 01:49:02
问题 I am trying to create an app which does some work when it becomes visible, and does other work when it goes away. This is typically accomplished with the page visibility api (http://css.dzone.com/articles/using-html5s-pagevisibility) but this is not currently supported in windows 8: http://msdn.microsoft.com/en-us/library/ie/hh673553(v=vs.85).aspx There are callbacks onactivated and oncheckpoint but these are for the process lifecycle and are not necessarily related to app visibility.

Why does Windows Shell context menu handler break power-user menu (Win+x) on Windows 8/10?

妖精的绣舞 提交于 2019-12-09 01:26:42
问题 My custom Windows shell context menu handler works like a charm, for all Windows versions from XP to 7, but on Windows 8, 8.1 and 10, installing it breaks the Win + X menu (sometimes called "Power user menu" , or "Quick Access menu" , or "WinX menu" ): when hitting Win + X , the menu is displayed as expected, but its items do not work anymore (nothing happens when I click on them), except for the last four items at the bottom which still work as expected ( "Search", "Run", "Shut down/Sign out

Handling Swipe Guesture in Windows 8 Grid

给你一囗甜甜゛ 提交于 2019-12-08 22:52:47
问题 I am trying to implement a custom control which consists of a grid with some canvas elements as children , When a swipe action is made on the grid , I am intended to preform some operation with the canvas elements . I am unable to handle the swipe for the grid , i have posted the same in the msdn - win8 Dev forum 回答1: I was in the same boat as you guys, since there was no samples out there on how this was done, but after perusing and scrutinizing the MSDN documentation on how a swipe gesture

Compatibility issue between XNA and Windows 8

我只是一个虾纸丫 提交于 2019-12-08 22:14:09
问题 When I try to install XNA, I get the following error message : Your version of XNA Game Studio 4.0 and below isn't compatible with this version of Windows. Is it really impossible to use XNA on Windows 8 (VS2010 is installed) ? It seems very strange ... 回答1: If someone ever have the same problem : You have to install the latest version of Games for Windows Marketplace client (here). 来源: https://stackoverflow.com/questions/12700472/compatibility-issue-between-xna-and-windows-8

Visual Studio 2012 native C++ DLL x86 compilation

▼魔方 西西 提交于 2019-12-08 21:33:34
问题 I have recently upgraded my toolset from Win 7 x86 / Visual Studio 2010 to Win 8 x64 / Visual Studio 2012. However, now my native C++ dll compiles as x64 rather than x86. I haven't done anything other than move the code to the new O/S and load it into VS2012. Does anyone know how I can force it to compile for x86? 回答1: Go to your project's property pages, find the Linker -> Advanced -> Target Machine option, and make sure it is set to MachineX86 . 回答2: Go to Build --> Configuration Manager --