windows-8.1

Timer in Windows 8.1 - how to mimic Timer(TimerCallback) constructor?

拜拜、爱过 提交于 2019-12-23 03:12:16
问题 I am porting an existing .NET class library that uses System.Threading.Timer to a Windows Store app that targets Windows 8.1. The Timer class is available, but a few options seem to be missing in relation to the corresponding .NET Framework Timer . In particular, there are only two constructors available in the Windows Store version: public Timer(TimerCallback callback, Object state, int dueTime, int period); public Timer(TimerCallback callback, Object state, TimeSpan dueTime, TimeSpan period

How to use template selector within a ContentPresenter in Windows 8.1

烂漫一生 提交于 2019-12-23 02:31:49
问题 I have a Windows 8.1 application. I have a requirement of selecting different templates based on a certain value. For this purpose I'm using ContentPresenter in the xaml with a Static Resource TemplateSelector. Here's my datatemplates and templateselector in xaml resources <DataTemplate x:Key="template1"> <TextBox Text="Temp 1" /> </DataTemplate> <DataTemplate x:Key="template2"> <TextBox Text="Temp 2" /> </DataTemplate> <DataTemplate x:Key="template3"> <TextBox Text="Temp 3" /> </DataTemplate

Windows 8.1 Emulator does not exist

回眸只為那壹抹淺笑 提交于 2019-12-22 17:16:44
问题 I have a Windows 8.1 Pro 64bit installed with Visual Studio 2013 Update 4. I tried to deploy the app on my device and it was successful. Yesterday, i tried to run the app on emulator and facing some problems. I downloaded the emulator from Windows Phone 8.1 Update and Emulator Download contains two files. I tried to install the SDK & Emulation images and setup completed without any problem. Now visual studio is showing the list of emulators in IDE but whenever i tried to run the app using

Windows 8.1 Emulator does not exist

血红的双手。 提交于 2019-12-22 17:16:12
问题 I have a Windows 8.1 Pro 64bit installed with Visual Studio 2013 Update 4. I tried to deploy the app on my device and it was successful. Yesterday, i tried to run the app on emulator and facing some problems. I downloaded the emulator from Windows Phone 8.1 Update and Emulator Download contains two files. I tried to install the SDK & Emulation images and setup completed without any problem. Now visual studio is showing the list of emulators in IDE but whenever i tried to run the app using

Retrieving data from webview in Windows 8.1 Store HTML5 app

大兔子大兔子 提交于 2019-12-22 16:45:34
问题 I am developing a Windows Store HTML5/Javascript app. As part of my app I need to invoke a Javascript method on a web page and retrieve its return value. The control x-ms-webview has a method invokeScriptAsync that can invoke a script on a webview. However there is no way of retrieving a value back from any method call. It also does not seem to support the standard method of communication with a host app, window.external.notify . How can I retrieve a value from a web page in a Windows Store

Windows 8.1 how to automatically wrap grid items?

亡梦爱人 提交于 2019-12-22 10:43:43
问题 I'm building a universal app and my Win8.1 app has to show a grid of items. Normally the grid consists of 3 columns, but on smaller screens I want the items to wrap so that there are only 2 columns (or even 1). This is my code: <GridView ItemsSource="{Binding Regions}" IsItemClickEnabled="True"> <GridView.ItemsPanel> <ItemsPanelTemplate> <ItemsWrapGrid Orientation="Horizontal" MaximumRowsOrColumns="3" MinWidth="400" /> </ItemsPanelTemplate> </GridView.ItemsPanel> <GridView.ItemTemplate>

How can I load remote content in a WinJS iframe whilst avoiding SEC7117 errors?

浪尽此生 提交于 2019-12-22 10:37:00
问题 I'm trying to port an existing web app to Windows Phone 8.1 (and later, to Windows 8.1). This is not static content, this is a dynamic page with loads of client-side functionality. My default.html file has <iframe src="https://remote.example.com/app.html"></iframe> . The content in the iframe works in the emulator, and resources that are directly referenced in that initial HTML seems to work. However, my web app but triggers several errors like this: SEC7117: Network request to https://cdn

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://

Multiple audio stream in Universal App(Runtime API), XNA SoundEffect replacement

陌路散爱 提交于 2019-12-22 10:29:31
问题 As the XNA SoundEffect is no longer available in the Windows Runtime API (for developing Universal App), I need something similar to play multiple audio streams at the same time. Requirements: Play the same audio file multiple times, simultaneously. Previous Silverlight implementation with SoundEffect : // Play sound 10 times, sound can be played together. // i.e. First sound continues playing while second sound starts playing. for(int i=0; i++; i < 10) { Stream stream = TitleContainer

Cannot create a directory named “Aux” or starting by “Aux.” on Windows 8.1

走远了吗. 提交于 2019-12-22 07:06:29
问题 I just encountered a really weird bug on Windows 8.1. I can't seem to be able to create a folder named Aux or starting by Aux. . I tried on every disk, but I get the following message every time: Le nom du périphérique spécifié n'est pas valide ( The name of the specified device is invalid ). Why is that? Is there a specific/valid reason? Is it specific to my computer? I discovered this because I programatically created a folder named Aux and I can't delete it anymore. I guess I have to run a