windows-8

Is it possible to use Firebase with a Windows 8 app?

好久不见. 提交于 2019-12-22 10:29:56
问题 I'm hoping to use Firebase in my Windows 8 app made using WinJS. Here is how I am trying to write to the root of my Firebase: var dataRef = new Firebase("https://<firbaseName>.firebaseio.com"); dataRef.set("I am now writing data into Firebase!"); However, this gives me the following error in the JavaScript console: Can’t load <https://<firebaseName>.firebaseio.com/.lp?start=t&ser=66595697&cb=2&v=5>. An app can’t load remote web content in the local context. I've tried to add https://

Catch an async lambda exception

ε祈祈猫儿з 提交于 2019-12-22 10:22:40
问题 I am working on Windows 8 (using C#) and when using the async keyword there's a scenario where i can't seem to handle exceptions well. The scenario involves launching an async lambda, posting it to run on the UI thread. Exceptions that occur during the execution of the lambda code gets re-thrown on the calling thread, with no ability to catch them properly. Example: this block of code is executed on some worker thread, and tries to schedule work on the UI thread: await Window.Current

Why can I not reference Bing Maps in my app?

好久不见. 提交于 2019-12-22 09:39:05
问题 I tried to add a Reference to Bing Maps in my app by right-clicking on References | Add References | Windows | Extensions | Bing Maps for C#... , but selecting "OK" does nothing - the Reference is not added. I then tried adding it via Tools | Extensions and Updates , but when I installed the latest version (with today's date - 11/5/2012), I then got: Successfully installed 'BingMapAppSDK 1.0.1011.1716'. Successfully uninstalled 'BingMapAppSDK 1.0.1011.1716'. Install failed. Rolling back...

How to keep the custom Settings Charm flyout open programmatically?

喜欢而已 提交于 2019-12-22 09:19:03
问题 I have created a custom AlarmSettingsPane in the settings charm which allows the user to give the time and also choose the audio file for alarm tone. So i implemented the file picker in the settings charm.When i click the file picker button it takes me to a new full screen where i get to pick my files, but when i select a file and open it, am directed to my home screen but the settings charm flyout gets closed. How can i preserve the state of the AlarmSettingsPane flyout and prevent it from

Equivalent of editable ComboBox in WinRT?

╄→гoц情女王★ 提交于 2019-12-22 09:03:39
问题 The standard (desktop) windows combobox has three styles; Simple, Dropdown, and Drop List. Dropdown works like an edit control and a combobox, whereas Drop List doesn't allow editing. Am I missing something, or does the XAML ComboBox control in a Windows 8 store app only support the Drop List style? I was halfway through implementing something when I ran into this, and the more I look, the more it seems that it just isn't supported. Do I really need to replace the ComboBoxes in my screens

ScrollViewer in Windows 8: always show vertical scrollbar

匆匆过客 提交于 2019-12-22 08:37:03
问题 How always show vertical scrollbar in the scrollviewer? It disappear in few seconds, but I want to make scroll visible all the time when scrolling is available Thanks for any help 回答1: I think there might be a bug in the control in Windows 8 Consumer Preview, since the following should normally work: <ScrollViewer Style="{StaticResource VerticalScrollViewerStyle}" VerticalScrollBarVisibility="Visible" Template="{StaticResource ScrollViewerControlTemplate1}"> As a workaround you can modify the

Enabling “Toast Notifications” for Windows 8 Store App

99封情书 提交于 2019-12-22 08:28:14
问题 I'd like to enable Toast Notifications for a Windows 8 Store Application i am building. The documentation says: "Simply set the Toast Capable option to "Yes" in the Notifications section of the Application UI tab." (Taken from How to opt in for toast notifications) Unfortunately, the Visual Studio manifest editor doesn't seem to have this option. Am i missing anything? *I know this can be done by editing the manifest file, but i am just wondering why it is missing from Visual Studio 回答1: It

Windows 8 named pipe creation

别来无恙 提交于 2019-12-22 06:57:45
问题 How I can create named pipe in the Windows 8 with AppContainer integrity level? 回答1: As Pavel Minaev mentioned in one of comments to some answer, there are no named pipes in WinRT (for Metro applications, for desktop applications pipes are the same as in Windows 7): Named pipes aren't there, for example, nor are memory mapped files. There are sockets (including server sockets), but when connecting to localhost, you can only connect to the same app. You may be interested in the WinRT API,

Debugging with Visual Studio 2012, Windows 8 and User Account Control

陌路散爱 提交于 2019-12-22 06:52:59
问题 First of all - this is all about the RTM Versions. And Windows 8 has some changes regarding the UAC, as we all learned from http://www.brianbondy.com/blog/id/140/, it cannot be disabled side-effect-free. Now the problem starts: Our main app requires elevated privileges (at least the server part). Debugging will only work when running VS in elevated mode, too. But when I'm starting a Silverlight Project in elevated mode of VS, the IE fired up for debugging is started as with normal privileges

Get Albumart in .mp3 file for Windows Store App

有些话、适合烂在心里 提交于 2019-12-22 05:43:08
问题 How can i get the AlbumArt image in the mp3 file? I am developing Windows Store app with c#. MusicProperties class gives me Album name artist name vs. But it cant give me albumart. 回答1: Check out MSDN sample to show thumbnail of any file. It also consists how to retrieve the album art. File and folder thumbnail sample If you want to save the album art check out How to store save Thumbnail image in device in windows 8 metro apps c# UPDATE 1 MediaFile is StorageFile . ImageControl is <Image ...