windows-8

Exception when calling SuspensionManager.SaveAsync()

女生的网名这么多〃 提交于 2019-12-10 15:26:48
问题 I'm building a Windows 8 app and have come up with the following exception: SuspensionManager failed When running the following code: private async void OnSuspending(object sender, SuspendingEventArgs e) { var deferral = e.SuspendingOperation.GetDeferral(); await SuspensionManager.SaveAsync(); deferral.Complete(); } The exception occurs on the third line of the method, and it doesn't really give any detail. I've failed to find anything useful regarding this on the net. Has anyone seen this

Size limit of local folder?

烂漫一生 提交于 2019-12-10 15:13:36
问题 My C#/XAML WinRT app makes use of ApplicationData.LocalFolder to store data. I'm wondering if there's any size limit for this folder. I didn't find any information on the web/MSDN... Is this folder limited in size or not? 回答1: As you can read in the documentation available at http://msdn.microsoft.com/en-us/library/windows/apps/hh464917.aspx: There are no general size restriction on local data stored. 来源: https://stackoverflow.com/questions/12857077/size-limit-of-local-folder

Could not copy “obj\Debug\{project}.dll” to “bin\{project}.dll”

a 夏天 提交于 2019-12-10 15:04:03
问题 Visual Studio Express 2013 for web has been throwing this error a lot lately when I try to run my project, and the only resolution I have found is to quit and relaunch Visual Studio or (sometimes) completely restart Windows. What could cause something like this? Full Error Dump Error 19 Could not copy "obj\Debug\HobbsEventsMobile.dll" to "bin\HobbsEventsMobile.dll". Exceeded retry count of 10. Failed. HobbsEventsMobile Error 20 Unable to copy file "obj\Debug\HobbsEventsMobile.dll" to "bin

Python support for Windows 8 [closed]

孤人 提交于 2019-12-10 14:58:48
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . Can we develop apps for Windows 8 or Windows RT in Python? If yes, then please tell me. 回答1: A Google search gave this result from

Zooming into image in Windows Store apps

谁都会走 提交于 2019-12-10 14:52:22
问题 I have a ScrollViewer with an Image Control in it. It displays a rather large image. I want my user to be able to zoom into the image using gestures. I therefore enabled the ZoomMode on the Scrollviewer. However the Scrollviewer automatically scrolls back to the left "edge" of the image whenever the user releases its finger, making effectively zooming in and out of the image impossible. This is the Template i am using: <DataTemplate x:Key="SingleItemTemplate"> <ScrollViewer ZoomMode="Enabled"

Windows 8 App: Why must I specify ms-appx:/// in my image source URL?

£可爱£侵袭症+ 提交于 2019-12-10 14:48:15
问题 I've been looking at the XAML Images sample project and the XAML to load an image in that sample looks like this: <Image Source="Assets/image1.jpg"/> However, in my own project I find that I cannot load any images like that. If I try I get E_NETWORK_ERROR when I handle the ImageFailed. Instead, I discovered that I have to use the ms-appx:/// prefix like this: <Image Source="ms-appx:///Assets/image1.jpg"/> Then it works. Any ideas what's different about my project vs the sample that would

How do I access SQL Server from Windows 8 apps?

耗尽温柔 提交于 2019-12-10 14:46:53
问题 I realize that a local SQL Server instance is not accessible to my Windows 8 app. Instead, I have a SQL Server in Azure. In SQL Server Management Studio, I just change the querystring and interact with the Azure database like any other. How can I reference that database in my Windows 8 app? 回答1: You can't access directly on sql databases.. Because Windows 8 Apps different from windows forms. But you can be used web services or azure, amazon services, storage files etc. 回答2: This is what the

Macro to recognize WinRT?

安稳与你 提交于 2019-12-10 14:44:56
问题 Is there a new macro to determine in code if the application is running on WinRT? As I'm working with LoadLibrary , it would be great if there is a macro to replace all calls to LoadLibrary with one to LoadPackagedLibrary ... I'm understanding the documentation correct as in I can load any DLL (as long as it's inside my package) via LoadPackagedLibrary , right?! (And as long as that DLL doesn't use black-listed APIs...) 回答1: I recently updated to Visual Studio 2012, and think I found the

Windows 8 + Chrome and broken mailto links

折月煮酒 提交于 2019-12-10 14:44:53
问题 I can't get chrome on windows 8 to open mailto links. They work fine in IE, and they work fine in chrome if the mailto is handled by a website (such as gmail), but I can't get it to work if Outlook is set to handle the uri. Has anyone else faced this issue? 回答1: You should follow the standard bug investigation/reporting path: look up a similar issue at http://crbug.com if none is found, file a new one at http://new.crbug.com That said, http://code.google.com/p/chromium/issues/detail?id=62254

Are preferred font sizes in Windows8 going to require a calculator?

荒凉一梦 提交于 2019-12-10 14:43:55
问题 While looking at some official Windows8/"Metro" material, I see this line of xaml: <TextBlock Text="Contoso Cookbook" FontFamily="Segoe UI" FontWeight="SemiLight" FontSize="26.667" /> What?!? A font size of 26.667? I realize this is 2/3rds of 40, and 5/6ths of 32, so maybe there's some conversion thing happening there, but is this going to be the preferred way of setting font sizes, and if so, what are the guidelines for coming up with these seemingly random sizes? 回答1: There are pre-defined