windows-8

Download and Save image in Pictures Library through Windows 8 Metro XAML App

牧云@^-^@ 提交于 2019-12-12 07:24:50
问题 I am trying to develop a simple Windows 8 Metro app which simply downloads an image file from a given URL (say http://sample.com/foo.jpg) and then save it to Pictures Library. I have an image control in the UI to display the downloaded image. I'm also facing difficulty in setting the image source for the image control to the newly downloaded image (actually I'm not even able to download it). Also, is it possible to store the image file in a particular folder in the Pictures library (if it

Screenshot capture in Window 8 OS

半世苍凉 提交于 2019-12-12 06:45:48
问题 To capture screen shot in my java application i have write following code Rectangle screenRect = new Rectangle(Toolkit.getDefaultToolkit().getScreenSize()); BufferedImage capture = new Robot().createScreenCapture(screenRect); ImageIO.write(capture, "png", new File("resources/img/screenshot.png")); This is working successfully and capture screen shot but this is not working in windows 8 operating system. any one else who have face this type of problem and get soluction? 回答1: my application is

How to create a dialog like CameraCaptureUI.CaptureFileAsync?

那年仲夏 提交于 2019-12-12 06:30:10
问题 I would like to create a library behaving like the CaptureFileAsync method, i.e. on a method call it would open up a full screen page with standard back navigation and return result to the caller. I want to be able to call it the same way CaptureFileAsync is called: var dialog = new Library.Dialog(); var result = await dialog.Show(); In the Show method I'm currently navigating to my own page and returning a Task which can be awaited by the caller: public Task<string> Show() { var task = new

Pin to start a shortcut on Windows 8 programmatically

£可爱£侵袭症+ 提交于 2019-12-12 06:28:05
问题 I have created an Installer using Installshield 2011. This Installer creates a shortcut in StartMenu-->Programs and it also has runs a vbscript during installation. This VB Script creates another shortcut in StartMenu-->Programs. The problem is that the shortcut created by Installshield gets automatically "pinned to Start" and hence appear as a tile on metro UI on windows 8, but the shortcut created by VBScript is "NOT pinned to start" and is visible only after clicking on "All Apps" on the

Windows - only the first entry of PATH-environment variable can be found

倖福魔咒の 提交于 2019-12-12 06:08:05
问题 The following problem with my PATH-environment variable I have for some time, and it's become untolerable annoying so I would appreciate help a lot. The following is the content of my system environment variables, which is also the output of echo %PATH% on cmd-exe. C:\MinGW\bin; C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin; C:\msys\1.0\bin; C:\Qt\5.3\msvc2013_64\bin; C:\Users\Public\Documents\Embarcadero\Studio\15.0\Bpl;C:\Program Files (x86)\Embarcadero\Studio\15.0\bin64;C:

Pass parameters to IBackgroundTask

徘徊边缘 提交于 2019-12-12 05:59:46
问题 I am implementing a windows store application for windows rt. It uses a backgroundtask to update its tile. I want to be able to configure the backgroundtask and the application to use the same urls when performing work, so i want to use a unified or centralized configuration. Right now i am using some *.resw files to configure certain aspects in my Windows Store application. How can i pass this configuration to the background task? 回答1: The easiest way is using ApplicationData.Current

CreateFile2 error in WinRT project (ERROR_NOT_SUPPORTED_IN_APPCONTAINER)

和自甴很熟 提交于 2019-12-12 05:38:25
问题 I just working on some file management api in WinRT. I successfully created folder in ../Packages/myApp/LocalState/ but when I try to create new file ( CreateFile2 ) in that folder I get this error 4252: ERROR_NOT_SUPPORTED_IN_APPCONTAINER This functionality is not supported in the context of an app container. code: localFolder = L"C:\\Users\\Tomas\\AppData\\Local\\Packages\\myApp\\LocalState\\my"; CreateDirectory(localFolder.c_str(),NULL); localFolder += L"\\MyFile.txt"; CREATEFILE2_EXTENDED

My application crashed when snapped with items in listviews

别说谁变了你拦得住时间么 提交于 2019-12-12 05:24:25
问题 So, im currently working on a project using C#/XAML for a Windows 8 Store App and I've encountred a problem. When the user navigates to a Page a ListView with some Controls shows up. Then when the user decides to snap the page my application crashes and shows this: In my IntelliTrace this shows up and I press an Exception. It navigates me to this code. /// <summary> /// Implement this partial method to configure the service endpoint. /// </summary> /// <param name="serviceEndpoint">The

Microsoft Visual Studio 2015 increase max Process Memory (over 2GB)

随声附和 提交于 2019-12-12 05:16:58
问题 On Windows 8 Is there a way to increase the process Memory limit of 2GB. My script needs 2.5GB RAM to run after I performed garbage collection to the best of my knowledge. I need to run in 64-bit (not related to largeaddressaware) 来源: https://stackoverflow.com/questions/40108722/microsoft-visual-studio-2015-increase-max-process-memory-over-2gb

Windows 8 User Control Navigation issue

帅比萌擦擦* 提交于 2019-12-12 05:07:36
问题 My requirement is that I have to add one common usercontrol in all my pages. The usercontrol will have 5 buttons. When user presses on one button navigation should happen to that button related page. I'm handling same thing in windows phone with following code: (Application.Current.RootVisual as PhoneApplicationFrame).Navigate( new Uri(PageUrls.INCOMEEXPENCE_PAGE, UriKind.Relative)); Now I want this in my window 8 application. Please help me on this. 回答1: It will be like this private void