windows-8

Windows 8 Flexboxes - Nesting Flexboxes with overflow enabled

泄露秘密 提交于 2019-12-08 09:33:40
问题 I am attempting to create a horizontally flexible screen in a Windows 8 store app with several groups stretching out horizontally (contained in the outer Flexbox), and various fields under the groups listed vertically, wrapping from the bottom of the screen to the top as necessary (contained in a series of inner Flexboxes). This is a similar layout to a grouped Windows 8 ListView, but because I am displaying fields related to a single data item, and certain sections will contain ListViews

Cookies in Windows 8 WinJS

左心房为你撑大大i 提交于 2019-12-08 09:31:31
问题 How can i enable for the IE10 store the cookies? Some internet services (Facebook Dialogs for example) pass variables this way which you need to use them in further request, but IE10 dont allow cookies. What i'm trying to do is login at facebook with "Windows.Security.Authentication.Web.WebAuthenticationBroker", get the token, and then open the feed dialog... when i try to open the feed dialog, i receive an error, because the page have no cookies... 回答1: If your question is about WinRT

Reading from file in a Windows RT Application [duplicate]

扶醉桌前 提交于 2019-12-08 09:07:10
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: How to read a text file line by line Windows RT? I am trying to read from file line by line in C#. This is my code String filename = "apoel.txt"; System.IO.StreamReader file = new System.IO.StreamReader(filename); I followed instructions from an MSDN page and followed them exactly. The problem is I keep getting the errors The best overloaded method match for System.IO.StreamReader.StreamReader (System.IO.Stream)

Is IE10(+) identical on Windows 7 and Windows 8?

我们两清 提交于 2019-12-08 08:59:24
问题 I am developing on OS X. For testing I am using VirtualBox with windows VMs from http://www.modern.ie/en-us/virtualization-tools#downloads When testing my web applications, should I be testing in IE10 on both Win7 and Win8, or can I safely assume that IE10 behaves identically on both platforms and only test on Win7? And the same question goes for IE11. 回答1: No, they are not identical, but they should be the same for the common features that both support. IE10 and 11 on Windows 8 and 8.1

Bing Maps in a hybrid app

最后都变了- 提交于 2019-12-08 08:24:48
问题 I am currently trying to use the Bing Maps AJAX API v7 in the new 'Multi-device hybrid App" template provided in Visual Studio, which uses Apache Cordova to provide crossplatform compatibility. I have written the following code, following the template at http://msdn.microsoft.com/en-us/library/gg427624.aspx : <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <head> <meta charset="utf-8" /> <title>Wand</title> <!-- Wand

How to open pdf files in windows 8 application using c#?

北慕城南 提交于 2019-12-08 08:20:53
问题 How to read the pdf files in windows 8 app .In my windows 8 application how to open the pdf files . In manifest file i wrote the below code. <Extensions> <Extension Category="windows.fileTypeAssociation"> <FileTypeAssociation Name="pdf"> <SupportedFileTypes> <FileType>.pdf</FileType> </SupportedFileTypes> </FileTypeAssociation> </Extension> </Extensions> and code behind. string imageFile = @"Images\DX730_EN.pdf"; var file = await Windows.ApplicationModel.Package.Current.InstalledLocation

Windows 8 Audio playing in background

谁说胖子不能爱 提交于 2019-12-08 08:14:44
问题 I have read previous posts on this and documents by microsoft but cannot seem to get my app to run Sound in the background. It plays 100% but when ever the app is then suspended the music also stops. I have added "Background Tasks" declarations selecting Audio and my audio tag looks like this <audio id="musicplayr" msAudioCategory="BackgroundCapableMedia" controls="controls"><source src="song.mp3"/> </audio and finally my javascript includes the references to MediaControls var MediaControls =

Can't get feed in Windows 8 app

梦想与她 提交于 2019-12-08 07:42:28
问题 I am creating blog reader app for Windows 8 by using RSS feeds. Part of code: function downloadBlogFeed() { WinJS.xhr({ url: "http://feeds.feedburner.com/CssTricks" }).then(function (rss) { var items = rss.responseXML.querySelectorAll("item"); for (var n = 0; n < items.length; n++) { var article = {}; article.title = items[n].querySelector("title").textContent; var thumbs = items[n].querySelectorAll("thumbnail"); if (thumbs.length > 1) { article.thumbnail = thumbs[1].attributes.getNamedItem(

Animation when add or remove item from GridView XAML

守給你的承諾、 提交于 2019-12-08 07:33:53
问题 How create own animation when item add or remove from GridView? For example change colour from dark to light. If Item is a Grid: <Grid.Transitions> --> There can be only predefinied *ThemeTransitions? </Grid.Transitions> Is other way to do this? 回答1: Tim is correct that the Transitions are pre-defined at this point. However, you should be able to achieve your scenario using Storyboard. There are probably several ways to do this, e.g. retemplating GridViewItem and adding new "Loading"/

windows 8 app roaming storage with custom class

懵懂的女人 提交于 2019-12-08 07:26:14
问题 I am learning programming in windows 8 with c#. I have worked through many tutorials (such as http://msdn.microsoft.com/en-us/library/windows/apps/hh986968.aspx) in the process and I am attempting to create a simple app showing data storage. All of the examples I have been able to find store only simple strings in roaming storage. Is there a way to store more complex data there? example: a List of a basic class Person with a name and age. I attempted to do it as: Saving the data: