windows-8.1

windows store app 8.1 file system access

柔情痞子 提交于 2019-12-24 22:08:08
问题 Can windows store apps only access "library" files and not other locations on the hard drives of PCs? Like if I had a D drive that was full of video media that I wanted the app to have access to, is there no way to get to that? I've been searching for a while now and can't find anything but "knownfolder" examples and documentation. 回答1: In order to access files outside of the libraries and other specific locations, you'd need to use the FileOpenPicker or FolderPicker. You can find more

RenderTargetBitmap works fine on Windows 8.1, but not on Windows Phone 8.1

大兔子大兔子 提交于 2019-12-24 17:06:04
问题 I'm making a universal app. In my app I need to use RenderTargetBitmap to convert an Image and a TextBlock over the image into a JPEG photo. On the Windows 8.1 project, everything works as expected, but not on the Windows Phone 8.1 one. Could you help me with that? Thank you. My code is as follows: async Task SaveVisualElementToFile(FrameworkElement element, StorageFile file, int imageWidth, int imageHeight) { var renderTargetBitmap = new RenderTargetBitmap(); await renderTargetBitmap

Saving a Texture2D using SharpDX when targeting Win8.1 + Metro?

Deadly 提交于 2019-12-24 16:19:54
问题 I'm trying to save a user-generated Texture2D to disk, but it looks like the standard ways of accomplishing this aren't available when targeting DirectX11.1 / Win8.1 / Metro. ToStream/FromStream are absent, and the DX11 methods for writing a texture to disk are absent as well. Any ideas or suggestions? 回答1: Here's the general solution I ended up with. Getting a DataStream through mapping a texture resource is what got me on the right track. General flow is create a texture with CpuAccessFlags

Retrieve the request data from URI in Webview Windows 8.1

可紊 提交于 2019-12-24 15:41:49
问题 I'm developing a Windows phone 8.1 app and there's this scenario where I should open the webview for the user to enter the card details. Once the card details are entered and processed, the payment API will send the transaction details back as a POST request to the webview. I'm not able to get the POST data, tried so many methods. How do I get the post data returned back from the server? Thanks in Advance 回答1: If you have access to webpage code then you can use WebBrowser.ScriptNotify for

Detect screen scaling factor in Windows 8.1 store apps

為{幸葍}努か 提交于 2019-12-24 14:15:43
问题 I am building up a string for the source attribute of some of my images in a Windows 8.1 store app. I need to detect the scale factor that the device requires so that I can append the correct .scale-n to the end of the string. These image sources are external to the app so I cannot rely on Windows' automatic scaling by just referencing the image without the scale-n part. So I need to know whether I should append scale-100, scale-140 or scale-180 to the image URL. How can I work this out in c#

Animations in visual state do not animate (WinRT)

痴心易碎 提交于 2019-12-24 12:51:08
问题 I am developing on Windows 8.1 RTM. I have a custom control with a custom dependency property of type double. This control has been placed in a user control. I am calling VisualStateManager.GoToState(control, true) on the user control. The animation should transition for 2 seconds. However, it simply snaps from 0 to 1 and from 1 to 0. The callback function is only called with either 0 or 1. If I directly set the dependency property to any value between 0 and 1, it works as expected. I have

Windows Store App running .msi installer

只谈情不闲聊 提交于 2019-12-24 11:42:04
问题 I am developing a windows store app which downloads a MSI file from a URL. I want to automatically run the MSI installer from C# code. first problem is the windows smart screen - the MSI is not signed event when smart screen is disabled var success = await Windows.System.Launcher.LaunchFileAsync(file); returns false; file = downloaded .msi installer Any ideas? Thanks for any advice. 回答1: It is not possible to launch an MSI (or other executable formats) directly from a Windows Store app. This

Issues with retargeting app for windows 8.1

折月煮酒 提交于 2019-12-24 10:44:54
问题 I am trying to retarget my app for windows 8.1 and I am experiencing some issues. I am getting an error that personally I do not recognize nor I found any information online Syntax Error found in XBF generation AdSettingsFlyout.xaml I do not have an AdSettingsFlyout.xaml file in my project and I suppose is one of the files that get built with the project due to Windows Ad SDK. I did not find a windows 8.1 SDK. How can I fix the issue? I need some of the 8.1 functionality in my app 回答1:

Winjs: A flyout inside a flipview does not stay active

你。 提交于 2019-12-24 08:58:01
问题 I made a flipview to navigate between pages, so I have a main page that contains the flipview and many other pages that I reference in the flipview so I can navigate between them. Now I put a very simple flyout in one of the sub-pages and it doesnøt matter how simple it is or where I put it, it just doesn't stay open. It closes as soon as I click on it (and not only outside of it as it should be). If I try and put the flyout in the main page instead it works. Is there any problem with having

How to use filenames in VBS [duplicate]

梦想的初衷 提交于 2019-12-24 07:34:13
问题 This question already has answers here : vbs cmd path space (4 answers) Closed 5 years ago . I've barely ever used vbscript before, so forgive my naivety. Here is very brief code, saved as "runningCheck.vbs": Set WshShell = WScript.CreateObject("WScript.Shell") Return = WshShell.Run("node.exe index.js", 2, true) This script is in the same directory as node.exe and index.js. In windows command line, when I cd into the directory and run "runningCheck.vbs", it executes just fine. However, when